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 |
Is a decimal an integer?
Does unity use c++ or c#?
State whether it is true to test a Web service you must create a windows application or Web application to consume this service or not?
can you allow a class to be inherited, but prevent the method from being over-ridden?
What is difference between asp net and c# net?
Can we inherit sealed class in c#?
what is default accessibility for a class? what is difference b/w viewstate and controlstate? what is the default access specifier for a top level class which are not nested into other classes?
What does xpath return?
Why do we need events in c#?
Why do we use class in c#?
Can we inherit an interface in an abstract class?
What is lock in c#?