Pages

Friday, August 24, 2012

What is State Management in Asp.Net?

Importance of State Management

Effective state management will provide users a seamless experience on your web site. For example, if your website maintaining multiple user roles, such as admin, manager, employee. When a user login as employee, the website have to maintain that role till the user sign out from the site. If your website not maintaining the state or data, the user may be need to provide his login credentials for each page request. Hence, good state management will provide richness on you website. ASP.Net providing various techniques to manage state information.

How Asp.net manages user's state?

ASP.NET provides multiple ways to manage user's state in your applications. Either you can manage client-side or server-side. In client-side state management the data stores on the client's side computer by browser cookie or the browser's cache. ASP.Net have various techniques for storing state information or data on client side, these includes, View State, Cookies, Query String, Hidden Fields and Control State. In server-side state management the user's information stored on server's memory or a database. ASP.Net Provides three techniques to store state data on the server, these are Application State, Session State and Profile Properties. These techniques help you to share state information between pages without sending data to the client.


Hope you understand the importance of state management and how ASP.Net manages user's state. I will give you more details about each state management techniques in feature blogs.

For more information about State and Stateless Applications, click on  Explain State and Stateless Web Applications


No comments:

Post a Comment