Click here to Skip to main content
15,913,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All ,

I am new with ASP.NET (web development) I want to learn State management thoroughly , can anyone suggest the best article for beginners. I want to know why we use this thing in deep, when to use
Client state mgt when to use Server state mgt and why ??


Regards
Raman
Posted

 
Share this answer
 
v3
Comments
Ambivert 4-Jun-13 2:57am    
Thanks for reply Rohan , but I am not getting the term client side and server side ??
Thanks7872 4-Jun-13 3:02am    
Refer to updated answer with new links. I hope you will better understand the client and server side.
Thanks7872 4-Jun-13 3:04am    
If you still have confusion then go through very basic understanding at What is Client Side and Server Side?
Client Side:
View State – Asp.Net uses View State to track the values in the Controls. You can add custom values to the view state. It is used by the Asp.net page framework to automatically save the values of the page and of each control just prior to rendering to the page. When the page is posted, one of the first tasks performed by page processing is to restore view state.
Control State – If you create a custom control that requires view state to work properly, you should use control state to ensure other developers don’t break your control by disabling view state.
Hidden fields – Like view state, hidden fields store data in an HTML form without displaying it in the user's browser. The data is available only when the form is processed.
Cookies – Cookies store a value in the user's browser that the browser sends with every page request to the same server. Cookies are the best way to store state data that must be available for multiple Web pages on a web site.
Query Strings - Query strings store values in the URL that are visible to the user. Use query strings when you want a user to be able to e-mail or instant message state data with a URL.

Server Side:
Application State - Application State information is available to all pages, regardless of which user requests a page.
Session State – Session State information is available to all pages opened by a user during a single visit.
Both application state and session state information is lost when the application restarts. To persist user data between application restarts, you can store it using profile properties.

See the references in all previous answers here[^] they are having more details with examples.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900