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
Which adapter should you use, if you want to get the data from an access database?
How many types of state management are there in asp net?
What is latest version of asp.net mvc? : Asp.Net MVC
What is scope of an application variable in asp.net?
What is viewstategenerator?
What is use of <% %> in asp.net?
What are the advantages of asp.net mvc framework? : asp.net mvc
What is redirecting behavior?
Explain form level validation and field level validation?
What language is asp.net written in?
Web API uses which library for JSON serialization?
Which object wraps the state or data of a user?
What are the differences between clr & cts?
How can you pass multiple complex types in Web API?
How many types of cookies are there in asp.net?