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 long should a session id be?
What is the significance of proxy user?
Explain what is the procedure to create the environment for asp.net? : asp.net mvc
What are the advantages and disadvantages of session?
What are the session management techniques asp net?
What is web router?
What is the purpose of master page?
What is round trip in asp.net?
Can user control be stored in library?
What New Features comes with ASP.NET Web API 2.0?
Explain culture and uiculture values.
Explain the advantages of asp.net.
What is sql data source control in asp.net?
What is the benefit of WebAPI over WCF?
What is an asp.net web form?