State Management and Web Application
 
What’s New in State Management?
 
In ASP.NET version 2.0, newly added features are following:
 
1. View-state chunking

2. Control state

3. Profile Properties
 
View-state chunking
 
When the view-state data becomes too bulky, view-state chunking will automatically split the data into chunks and put the data into multiple hidden-form fields.
 
The access to the page that contains bulky view-state data is prevented by some proxies and firewalls, so view-state chunking will be help to solve this problem.
 
To allow view-state chunking, set the MaxPageStateFieldLength property to the maximum size. The maximum size is presented in bytes up to size that you want to allow in a single view-state field.
 
Control state
 
The ControlState property allows you to persist property information that is definite to a control and cannot be turned off like the ViewState property. It helps you to store control-state data in order for a control to work properly.
 
Profile Properties
 
ASP.NET 2.0 gives a new feature known as profile properties, which allow storing the user-specific data. The profile properties feature is similar to session state, excluding that the profile data is not lost when a user session expires. The ASP.NET profile allows you to manage user information without maintaining any database.