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 are collections in c#?
What is console read in c#?
What is the major difference between a custom control and user control?
What is the class in c#?
What is constructor overloading in c#?
What are the properties of string?
Explain briefly the difference between value type and reference type?
Write a short note on interface?
Why do we need static class in c#?
How do I create a multilanguage?
Explain the types of comments in c#?
How long has c# been around?
Give some examples for built in datatypes in c#?
Name the property of the textbox which cannot be changed at runtime?
What is .edmx file?