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 action in c# 3.5?
How does bitwise xor work?
What is function and method in c#?
What is the use of partial methods?
What do multicast delegates mean?
What is the difference between do and while loop?
What is disconnected data architecture in c#?
what is the difference between convert.tostring() and tostring() functions ?
What is the difference between protected and private?
Explain the ways to deploy an assembly?
What is the difference between readkey and readline in c#?
What is difference between for and foreach loop in c#?
How to parse a date time string?
What is xor operation?
What is for loop in c#?