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

What is query string? What are its advantages and limitations?

0 Answers  


In which event are the controls fully loaded?

0 Answers  


I have one application, one user purchase some products in my application? and another person came he is also purchase some products?how can we identify which user purchase which items? my answer is by using session id? but i dont know how? can u give me programming for that?

1 Answers  


Why asp.net mvc is better than asp.net? : Asp.Net MVC

0 Answers  


Which is an advantage of application service providers?

0 Answers  






What is mvc in asp.net tutorial? : Asp.Net MVC

0 Answers  


Explain the main function of razor in asp.net? : asp.net mvc

0 Answers  


What is the name of the process the browser uses to find the address of a web server? a) DMZ b) DNS c) Active Directory d) Database lookup

1 Answers   Syntax Softtech,


How do you create a permanent cookie?

8 Answers   Siebel Systems,


If i have a page where i create an instance of a dll and without invoking any method can I send values to next page ?

1 Answers   Satyam,


What is Difference between Production Serves and Development Servers? And Suppose, m adding/deleting C# file in a project based on the Specific Requirement. These Files are Automatically updated in Production Servers? So Which tool is needed to do This One?

0 Answers  


How can we register exception filter from the action?

0 Answers  


Categories