Home > DeveloperSection > Interviews > What is Viewstate?

Posted on    October-25-2010 12:00 AM

 ASP.Net ASP.Net 
Ratings:
 1 Answer(s)
  1101  View(s)
Rate this:

Pushpendra Singh

Total Post:241

Points:1205
Posted on    October-26-2010 12:00 AM

viewstate  is one

of the type of asp.net state management. viewstate: used to

save data within postbacks in hidden fields. stored data can

be encrypted for more security via 1) web.config file's

<Configuration>

       <system.web>

        <pages viewStateEncryptionMode="Always"/>

      </system.web>

</configuration>

or 2) page directive:-

<%@ Page Language="C#" AutoEventWireup="true"

CodeFile="Default.aspx.cs" Inherits="_Default"

ViewStateEncryptionMode="Always"%>

 

can set to off:

1) at entire page level or at specific control level

2) at machine or application level in web.config file


Don't want to miss updates? Please click the below button!

Follow MindStick