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

Explain the different ways a method can be overloaded?

0 Answers  


What is form feed in c#?

0 Answers  


What is the use of protected in c#?

0 Answers  


Why do we need static in c#?

0 Answers  


Explain About Global.asax

0 Answers   Keane India Ltd,






Suppose in a scenario if we want to display information only until 4.00 p.m and after that means after 4.00 p.m if any one tries to access the information it should give error mesage. Then how will you write a delegate for this ? Give coding.

1 Answers   HP, nTech Solutions, Primetech Software, PS,


How to use exception handling in stored procedure?

0 Answers   Wipro,


What is xslt in c#?

0 Answers  


what is the diference between casting and converting?

2 Answers  


What is variable in c#?

0 Answers  


What does using do in c#?

0 Answers  


How to move to a state-related codebase?

0 Answers  


Categories