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
What is assembly c#?
What is marshalling in c#?
Define a manifest in .net?
What are modifiers in c#?
Why do we need generics in c#?
What is singleordefault?
Is constructor a static method?
Can we override interface method?
What is difference between iqueryable and ienumerable in c#?
What can be done with c#?
What is the purpose of private constructor in c#?
Which is more efficient for loop or while loop?
What is difference between array and list?
Ho we can see assembly information?
What is a scope in c#?