;

State Management in ASP.net

admin 06:40:pm Jan 29 2017

State Management: To manage the state of Web Pages/ User Data we use the state management technique. The reason to manage state is that browser and HTTP/HTTPs are stateless. Each time when user send request to the web server a new object of the page is created.


We can manage the state at different level:


  1. Control Level: All controls in asp.net have automatic state management.
  2. Object or Variable Level: For variable in a page need object or variable level state management
  3. Single or Multiple Page Level: In case of page requests
  4. User Level: Manage state as long as user is active on the application.
  5. Application Level: Manage state irrespective of user. It will be available to all users.
  6. Application to Application Level: Manage state among multiple applications.

We can manage the state in asp.net in the following ways:

Client Side State Management: In this type of state management all information related to state are stored at client machine or in the page user is looking into. Server does not store any information b/w client to server round trip.

There are multiple ways to manage state at client side:

  1. View State
  2. Control State
  3. Hidden Field
  4. Cookies
  5. Query String

Server Side State Management: In this type of state management all information related to state are stores at server machine. Server sends less information to client.

  1. Application State
  2. Session State
There are three modes (ways) to manage Session State:
  1. In Proc
  2. State Server
  3. SQL Server

Related Post

Comments

No comments yet. Be the first!

Add Comment

Adding comments has been disabled.