What is ViewState? How is it encoded? Is it encrypted? Who uses ViewState ?
Answer / nikhiul saxena
ViewState is the mechanism ASP.NET uses to keep track of server control state values that don't otherwise post back as part of the HTTP form. ViewState Maintains the UI State of a Page
ViewState is base64-encoded.
It is not encrypted but it can be encrypted by setting EnableViewStatMAC="true" & setting the machineKey validation type to 3DES. If you want to NOT maintain the ViewState, include the directive < %@ Page EnableViewState="false" % > at the top of an .aspx page or add the attribute EnableViewState="false" to any control.
| Is This Answer Correct ? | 0 Yes | 0 No |
Why do we use sessions?
I am having four text boxes in my web application. I am setting Required Field validator to each Text box. And I am having two buttons in my application. If i clicked the first button only first two text box validation will get fire. Dont show error message for remaining two text box. If i clicked second button last two text box validation will get fired. It will not consider the first two validation controls. That is how to enable and disable the validation controls.
What is the procedure to handle the process request using mhpm events fired? : asp.net mvc
How can you send an email message from an asp.net web page?
Describe the sequence of action takes place on the server when ASP.NET application starts first time?
Define repository pattern in mvc.net? : asp.net mvc
Which object wraps the state or data of a user?
What is base class of .net?
is it possible to access website from a remote place, without deploying it on web server?
Which type if caching will be used if we want to cache the portion of a page instead of whole page?
can any one explain about 3-tier architecture and how to deploy 3 layers of 3-tier architecture in 3 different servers.plz send me .net code
What are the differences between Dataset and DataReader?
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)