Virtual Classes Logo          Virtual Classes
    Read Anytime,Anywhere


State Management

A Web application is stateless. Whenever the page is requested or the page is posted to the server a new instance of the Web page class is created.
It mean that all information associated with that page and the controls on the page would be lost with each round trip. To overcome this limitation of Web programming, ASP.NET has provided various options for statement management.
There are two ways by which you can preserv the state of a page.
Client Site-In client side statement management technique the information either stored on client machine or in page. Client Side state management does not use any server resource. Every time the page is posted back to server the information stored on client machine or page sent to server along with the request.
Client side state management technique are-
1-View state
2-Control state
3-Hidden fields
4-Cookies
5-Query strings
Server Side-In server side statement management technique the information is stored on server,because the information is available on server so there is no need to sent it to server.
Server side state management technique are-
1-Application variable.
2-Session variable.
3-Caching.