What is ViewState? How is it encoded? Is it encrypted? Who uses ViewState ?
Answer Posted / 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 |
Post New Answer View All Answers
How Can assign alias name for ASP.NET Web API Action?
What is the difference between page-level caching and fragment caching?
Explain the differences between clr & cts?
What are the advantages of the code-behind feature?
How do you store a value in viewstate and retrieve them?
What is OSI layer? Explain different layers.
how to elimainte the similar data from the different tables
Explain the working of passport authentication.
What is gridview in asp.net?
WSDL means?
calling result set one procedure to anothar procedure in sql2000
What is difference between asp state management and asp.net state management?
Is react a template engine?
What are the difference between overriding and overloading?
Explain parts of assembly?