Home > DeveloperSection > Interviews > What is Viewstate?

Posted on    October-25-2010 12:00 AM

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

Pushpendra Singh

Total Post:241

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



        <pages viewStateEncryptionMode="Always"/>



or 2) page directive:-

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

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



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