.NET news » Components Components Rss Feed

Determine Your ASP.NET Page's View State Size

The ASP.NET WebForms model aims to simplify web development by blurring the line between the client and the server. In short, WebForms allow the page developer to set aside the fact that the browser and the web server are temporally, physically, and logically disconnected. The page developer can create server-side event handlers that execute in response to a client-side action (like clicking a button). He can make server-side changes to properties of Web controls on the page and need not worry about reinstating those properties on the subsequent postback. One of the essential ingredients for performing this magic is view state.

View state represents the state of an ASP.NET web page that is to be remembered across postbacks. On each page visit, an ASP.NET web page automatically constructs this state information and stores it to a hidden form field on the page named __VIEWSTATE. When the form is submitted, the browser returns this hidden form field to the server; the ASP.NET page then parses the view state information to reconstruct the state from the previous page visit. This entire process happens automatically behind the scenes and is, in part, what makes ASP.NET web development so accessible.

Unfortunately, there is no such thing as a free lunch, and view state is no exception. The presence of view state adds to the size of the page, thereby resulting in larger page sizes that can negatively effect the user experience. What's more, certain controls - such as DropDownLists and GridViews - can significantly add to the heft of a page's view state. It's a good practice for WebForm developers to keep an eye on their pages' view state sizes to ensure an optimal user experience. This article two ways to programmatically determine a page's view state size and to provide a warning should the view state size exceed some specified threshold.

14 Sep 2010, 19:00:00   Source: Determine Your ASP.NET Page's View State Size   Tags: Components

WPF/xaml NotifyIcon and Taskbar (system tray) popup window

Integrating WPF and XAML with the windows forms NotifyIcon control to produce a slick, styled popup window when the mouse is moved over the NotifyIcon

Win32 SDK Propertygrid Made Easy

This article describes the creation of a non-MFC custom Propertygrid control
4 Aug 2010, 14:58:00   Source: Win32 SDK Propertygrid Made Easy   Tags: Components

A ToolTip with title, multiline contents, and image.

A tooltip to display separate title, contents, and image of each control, and enable for custom shaped.
4 Aug 2010, 00:02:00   Source: A ToolTip with title, multiline contents, and image.   Tags: Components

MultiColumnTree

A treeview with multiple columns.
28 Jul 2010, 00:52:00   Source: MultiColumnTree   Tags: Components

Data Combobox

A custom combobox control that uses a datatable and can show multiple columns
27 Jul 2010, 18:54:00   Source: Data Combobox   Tags: Components

Localization and Complex Validation in MVVM

Presents methods to handle some of the trickier aspects of MVVM, including error message localization, multi-control validation, validation with multiple instances of a view, and whole-view validation.
21 Jul 2010, 09:22:00   Source: Localization and Complex Validation in MVVM   Tags: Components

Silverlight RIA Tasks 2: Dynamic View Models

Creating Multiple Dynamic Views using View Model Style and the Silverlight Tab Control
18 Jul 2010, 08:22:00   Source: Silverlight RIA Tasks 2: Dynamic View Models   Tags: Components

Simple Shopping Cart User Control (Floating and Movable)

A simple and easy way to add shopping cart to your web and start using it
14 Jul 2010, 10:40:00   Source: Simple Shopping Cart User Control (Floating and Movable)   Tags: Components

MultiPaneCtrl

A control that allows you to create multiple areas with tabs that you can pull with the mouse and as a result change the configuration of these areas.
12 Jul 2010, 19:32:00   Source: MultiPaneCtrl   Tags: Components