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 |
What is sealed class in c#?
What is console read in c#?
How C# 4.0 supports dynamic programming language?
What?s the .NET datatype that allows the retrieval of data by a unique key?
What is the difference between “constant” and “readonly” variables in c#?
why we can't create an object for a static class?? what is the reason behind this?
Is lazy thread safe c#?
Explain the difference between “as” and “is” operators used in c#?
What is the default modifier for class in c#?
What are extension methods and where can we use them?
What are primitive types in c#?
Can multiple catch blocks be executed?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)