Elaborate differentiation between ViewState and SessionState?
Answer / Parvez Alam
ViewState and SessionState are both mechanisms in ASP.NET for storing and managing data, but they have some key differences:nn- ViewState: It is a hidden form field that stores state information for individual web form controls on the client side (in the user's browser). This information helps maintain the state of control properties between postbacks.n- SessionState: It is a server-side mechanism used to store data across multiple requests for a single user. SessionState can be stored in various modes like InProc, StateServer, SQLServer, and OutOfProcess.nnViewState is specific to web forms, while SessionState can be used with any type of control or custom user class.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is there any limit for query string? Means what is the maximum size?
What is the default timeout for a cookie?
What is DTS package?
What asp.net control can embed xaml into asp.net pages?
What are the session variables?
How can u debug your .net application?
Explain repository pattern in asp.net mvc? : asp.net mvc
What are different templates available in Repeater,DataList and Datagrid ?
What are the modes of updation in an updatepanel?
What are user controls and custom controls ?
how to write html code with ssl
What is http post and http get?
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)