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 variable and its classification?
What are the fundamental differences between value types and reference types?
i want o/p 011242110 in c# code.
Why extension method is static?
What is default constructor c#?
How does insertion sort work?
For read-only operation which property you have to designated?
What are cshtml files?
Does the variables of a private class-level inherited?
What is asp net in c#?
What is the difference between constant and readonly in c#?
What are logical operators in c#?
What is out int in c#?
What is data type in c# with example?
What is new method in c#?