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

Can a dll be changed to an exe?

593


Tell us what do the following acronyms in .net stand for: il, cil, msil, cli and jit?

526


What is COM Interoperability in .NET

645


Explain attributes in dot net?

574


How to get the number after decimal point in .net?

571






Tell us the difference between the while and for loop. Provide a .net syntax for both loops?

543


How many types of transactions are there in com + .net ?

575


Do you know what is lambda expressions in c#?

553


Explain the difference between static page and dynamic page?

555


What is operator overloading in .net?

634


What do you mean by Driver Script?

632


What is deferred execution vs. Immediate execution in linq?

572


What is a strong name in .net?

596


Explain what is an interface and what is an abstract class? Please, expand by examples of using both. Explain why?

543


What are the namespace available in .net?

594