.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Sandeep Singh
Melody Anderson
Eminent IT

Home >> Articles >> ASP.NET >> Post New Resource Bookmark and Share   

 Subscribe to Articles

State management in .NET

Posted By:Athira Sreejith       Posted Date: December 31, 2008    Points: 25    Category: ASP.NET    URL: http://www.dotnetspark.com  

State management in .NET:

State management is a process by which you maintain application and session related information when multiple users request for the same or different web pages of an ASP.NET application.State management is needed when the same user logs on to a web site for multiple times.

Client side management:

View state
Hidden field
Query string

Server side:

Session and
DB Support.

View State:

The view state is an ASP.NET web page enables to retain page of ctrl specific values between round trips.Each web form page and the ctrl on the page have the view state property that is inherited from the base ctrl class.ASP.NET framework uses the view state property to automatically save the values of the page and of each ctrl prior the rendering the page.When the web page is posted ,one of the tasks performed by ASP.NET is to restore the view state.

Hidden Field:

A hidden field does not render in a web browser.A hidden field stores a single variable in its value property and must be explicitly added to the page.In ASP.NET the HtmlInputHidden ctrl provides the hidden filed functionality.


A cookie is a small data structure used by a web page server to deliver data to a web client.A cookie contains page specific information that a web server sends to a client along with page output.Cookies are use for sending page specific information because HTTP is a stateless protocol and cannot indicate whether page requests are coming from the same or different client.Cookies are saved on the client computer.cookies can be either temporary or persistent .Temporary cookies also known as session cookies,exists in the memory space of a browser.When the browser is closed all the session cookies added to the browser are lost.A persistent cookies is saved as a text file in the file system of the client.


The query string is a part of the request that appears after the question mark character in the URL.A query string provides a simple way to pass information from one page to another.

Server side state management.


Application state is created when each browser request is made for a specific URL.After an application state is created,the application specific information is stored in it.All information stored in the application state is shared among all the pages of the web application by using the HttpApplicationState class.



 Subscribe to Articles


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend