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

hi ans dis qstn. "what is d max size of query string. If it exceeds does it give error. if yes wt error it gvs, if no gv the reason" thnx in advance

3 Answers  


What is different between webconfig.xml & Machineconfig.xml ?

1 Answers  


How we can bind textbox,listbox and datagrid to sql server database in asp.net using visualstudio.net language (vb.net)?

2 Answers   rocsearch,


What is Web API Routing?

0 Answers  


Which protocol is used in a web api?

0 Answers  






Difference between .NET and previous version?

1 Answers   Microsoft,


What is WebService ?

8 Answers   Tanla Solutions, Yahoo,


what is generics?

2 Answers   Microsoft,


What are the different web pages?

0 Answers  


How will you do Redo and Undo in a TextControl?

0 Answers  


What is an example of an application service provider?

0 Answers  


What is the difference between login controls and forms authentication?

0 Answers  


Categories