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 |
Is asp.net web forms dead?
Why do we need a web application session?
When is validation done on the client? How does client-side validation improve the efficiency of an application?
What is the namespace used to store the information about the user?s locale?
Can we use the java script code in .Net Code behind?
Can session variables be accessed from code-behind?
For a webapplication if i want to gice access controls like admin,users how can i give security like rolebased?
Define what is razor? : asp.net mvc
What is sequence of code in retrieving data from database?
What base class do all Web Forms inherit from?
What is the difference between a.Equals(b) and a == b?
ASP.NET uses event driven programming model.Justify.
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)