Thursday, June 16, 2011

State and Life Cycle



ASP.NET manages four types of state:


Control state
Used to provide features such as paging and sorting of GridView controls. Control
state cannot be modified, accessed directly, or disabled.


View state
The state of all the controls on the page. View state only lasts for that one page
display, and is updated every time the page is redrawn. It can be disabled for
specific controls, the page, or the entire web site.


Session state
Data specifically saved across page posts, for use by all the pages in a web
application.


Application state
Data available to all the users of a web application, even across multiple
sessions.

No comments:

Post a Comment