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 |
Do we get an error while executing the “finally” block in c#?
Can we inherit an interface in an abstract class?
What are the return types in c#?
Illustrate the process of code compilation in c#?
What is serialization in dot net?
What are scriptable objects?
What is data dictionary in c#?
What is the difference between “finalize” and “finally” methods in c#?
What are the types of parameters in c#?
Why ref is used in c#?
What is overriding in c#?
Explain About Assembly in .NET, types of assemblies, their difference, How to register into GAC. How to generate the strong names & its use.
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)