What Is The Difference Between ViewState and SessionState?
Answer Posted / pooooo
Session State contains information that is pertaining to a specific session (by a particular client/browser/machine) with the server. It's a way to track what the user is doing on the site.. across multiple pages...amid the statelessness of the Web. e.g. the contents of a particular user's shopping cart is session data. Cookies can be used for session state.
View State on the other hand is information specific to particular web page. It is stored in a hidden field so that it isn't visible to the user. It is used to maintain the user's illusion that the page remembers what he did on it the last time - dont give him a clean page every time he posts back.
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
How long can a string be c#?
What is transparent caching with aop ?
How to implement an object pool in c#.net.
What is a factory in c#?
What are the string functions in c#?
Can I use exceptions in c#?
What are circular references?
What is the process of Serialization?
How does one compare strings in c#?
Can properties be overloaded in c#?
What is linq c#?
Can we override interface method?
Define acid rule of thumb for transactions in c#.
Is hashset ordered c#?
What is the use of parse in c#?