Client-Side State Management

When it comes to state management, there are two basic choices to make: Should you maintain the state by using server-side techniques or should you maintain the state on the client? In the following sections, you will learn how to maintain state using some client-side techniques such as ViewState, hidden form fields, cookies, and query strings.

Understanding View State

A very simple way of managing the view state of an ASP.NET server control is through the use of the Control.ViewState property.

TIP

The Control.ViewState property returns a System.Web.UI.StateBag object. A StateBag object is the primary storage method employed by HTML and server controls. It stores this information as name/value pairs and implements ...

Get Microsoft® Visual C#® .NET 2003 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.