What is ViewState? How is it encoded? Is it encrypted? Who uses ViewState ?



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

Post New Answer

More ASP.NET Interview Questions

when to use webservice and when to use remotong diff between them

3 Answers  


How would you get asp.net running in apache web servers? Explain it's limitations.

0 Answers  


What does postback mean?

0 Answers  


When does a session actually start?

0 Answers  


how to convert varchar into datatype int............. in ASP

1 Answers  






Is global asax mandatory?

0 Answers  


You have two buttons in web form and i clicked on one of the button, so how do i find which button i've clicked on the form in my page load?

15 Answers   INDUS,


ADO.Net - how to get data from database and bind to the controls -- write this small code

3 Answers   Syntel,


Differences between session state and Application state?

6 Answers  


What is WCF? Pls Explain clearly with exmple.

3 Answers   HCL, iGate,


differences between class inheritance and interface?

2 Answers  


What is cas?

0 Answers  


Categories