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
What is the difference between dispose() and finalize()?
Can asp.net work on an nt server?
What is preprocessor in .net?
Can a master page have more than one contentplaceholder?
Why session management is required?
What type of code, client-side or server-side, is found in a code-behind file of a Web page?
What are the benefits of view state?
Does google crawl redirects?
Who is using asp.net?
What is sta?
What is the usage of DelegatingHandler?
How Session outproc in Sqlserver stored?
Can you change a Master Page dynamically at runtime?
Define the types of configuration files.
What are the advantages and disadvantages of session?