31 January 2014

Asp.Net State Management

State management means to maintaining  state of a control, web page, object/data, and user in the application explicitly because all ASP.net Web are stateless, i.e., by default, for each page posted to the server, the state of controls is lost. Nowadays all web apps demand a high level of state management from control to application level.

The state management  can be at done at Client side  and server side

Client Side State Management:

       Storing page information using client-side options doesn't use server resources. These options typically have minimal security but fast server performance because the demand on server resources is modest

·         View state
·         Control state
·         Hidden fields
·         Cookies
·         Query strings

Server Side State Management:

      Server-side options for storing page information typically have higher security than client-side options, but they can use more Web server resources, which can lead to scalability issues when the size of the information store is large. ASP.NET provides several options to implement server-side state management

·         Application state
·         Session state
·         Profile properties
·         Database support

No comments:

Post a Comment