One of the most crucial concepts in Web Development is the State management. In a nutshell, when you request a page from ASP.NET, the Web Server receives it, process it and finally sends the response back to the browser, discarding all the previous Page information. You may ask yourself right now how is then possible to see several server controls, such as TextBox or GridView, maintaining their values during Postbacks. Well, those server controls, use the ViewState Page property to maintain their state. There are three basic objects in ASP.NET to maintain a state in your Page, the ViewState, the SessionState and finally the Application. Each of these are appropriate for different scenarios and this is what we are going to show in this post. We will build a simple Web Application with three Pages and each Web Form will demonstrate one of the three State objects we mentioned. Let's start.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2010,.Net,Articles,Computer Tutorials, ASP.Net