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 .net3.0 and .net3.5?

550


Explain me what is an anonymous method and how is it different from a lambda expression?

531


Define code access security (cas)?

559


Do you know what is .net standard?

571


How to implement datagrid in.net? How would you make a combo-box appear in one column of a datagrid? What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for datagrid methods. What is the access specifier used for that methods in the code behind file and why?

540






A developer company sends dlls to the client. Some client is not happy current functionality, so request some modification. Developer made some changes and send new dll to all clients. Some client is happy with old version, tell me minimal change to so that neither clients get affected?

507


What are the features of dot net?

526


How will you load dynamic assembly? How will create assemblies at run time?

1607


How is meant by dll in .net?

569


Please explain what is reflection and what is it for?

494


Write Code for DataSet,Datareader,and by deleting the button gridview should be empty?

1614


Explain what rare the types of jit and what is econo-jit?

508


What are the different types of remote object creation mode in .net?

567


What is .net core used for?

535


What is the difference between boxing and unboxing?

534