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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyapriya NayakPosted May 3, 2012, 12:24 AM
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
SenthilkumarPosted May 3, 2012, 12:02 AM
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.
MuthuMari MPosted May 2, 2012, 11:10 PM
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,