What is view state?

Answer Posted / prashant

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 ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What should you do to store an object in a viewstate?

573


How do you instantiate a complex number?

601


What do you mean by Driver Script?

636


Is Driver Script any how related to AOM?

627


What are the improvements made in cas in .net 4.0?

525






Explain the difference between asp.net and asp?

577


Explain .NET architecture?

634


What is UDDI and how to register the web service in it?

635


What is managed code in .NET?

651


What is .net and why it is used?

546


What is machine.config in .net?

581


Please explain what is the difference between a class and an object?

586


Explain memory-mapped files.

640


Can a try block have more than one catch block?

619


Is the COM architecture same as .Net architecture? What is the difference between them (if at all there is)?

1581