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 is gac in .net?

679


What is the difference between "using system.data;" and directly adding the reference from "add references dialog box"?

697


What are the types of assemblies in .net?

657


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

674


If a dataset contains 100 rows, how to fetch rows between 5 and 15 only?

622






Is .net a language?

660


What is equivalent for regsvr32 exe in .net ?

770


What is meant by globalization and localization?

679


How do you turn off cookies for one page in your site? Give an example.

583


Explain the difference between .net 2000 and .net 2005(features)? Which one is better?

653


Explain can 2 different applications use the same dll in gac at the same time?

678


Describe difference between inline and code-behind?

745


Is there built-in support for logging?

714


What are the differences between user control and server control?

695


What is the use of Treeview control?

704