What is State Management. How many ways are there to maintain a state in .NET ?
State Management
Hi
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
MuthuMari MRank #5,738 · 288 reputationPosted May 2, 2012, 7:10 PM EDT
pls refer this url
http://www.c-sharpcorner.com/uploadfile/meetuchoudhary/state-management-in-Asp-Net/
http://www.c-sharpcorner.com/uploadfile/37db1d/hour-1-understanding-5-Asp-Net-state-management-techniques-in-5-hours/
http://www.c-sharpcorner.com/UploadFile/ganesh.nataraj/ASPdotNETSessionState09212005235624PM/ASPdotNETSessionState.aspx
thanks,
SenthilkumarRank #387 · 6.5K reputationPosted May 2, 2012, 8:02 PM EDT
The HTTP is stateful mechanism even though it can't maintain the state of the controls across the post back to the server. It needs some mechanism to maintain the state of the web page even post backs.
The server state mechanism:
Session state:
Application state:
The application state is global state variable, where all the users can share the value in the application variable.
It has the key and value pairs.
Application["Version"] = "1.2";
Client side state management:
it is client side, it is not safest way because some body can view or disable in the client browser. It is small state management, it will be stored on the client browser. The user name and password can be stored.
It will be stored in the client side hidden control and persists across the post backs.
It has the limitation to have in the url (0to2550 and it can be part of the url to pass the value between the pages.
The view state is client side and every control will have the option to store the state of the control through the view state because it will store the encrypted value of the control state in the hidden control.
Hope this will help you.
Satyapriya NayakRank #47 · 31.5K reputationPosted May 2, 2012, 8:24 PM EDT
Please refer the below links
http://www.c-sharpcorner.com/uploadfile/nipuntomar/state-management-in-Asp-Net/default.aspx
http://www.c-sharpcorner.com/uploadfile/meetuchoudhary/state-management-in-Asp-Net/default.aspx
Thanks