What Is The Difference Between ViewState and SessionState?



What Is The Difference Between ViewState and SessionState?..

Answer / 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

More C Sharp Interview Questions

what is IDisposal interface,IComparable,IEquatable,IFormatable

0 Answers   Wipro,


How is the memory managed in C#.

1 Answers  


Is array ienumerable c#?

0 Answers  


Explain deadlock?

0 Answers  


What does addressof operator do in background ?

0 Answers  






How many aware interfaces are there?

0 Answers  


How can you clean up objects holding resources from within the code?

4 Answers   Wipro,


What is generic types in c#?

0 Answers  


What is alias in c#?

0 Answers  


What is thread safe in c#?

0 Answers  


What does out mean in c#?

0 Answers  


What is difference between struct and class in c#?

0 Answers  


Categories