WHAT IS VIEWSTATE?

Pushpendra Singh

Total Post:241

Points:1205
Posted by  Pushpendra Singh
 1331  View(s)
Ratings:
Rate this:
  1. Pushpendra Singh

    Post:241

    Points:1205
    What is Viewstate?

    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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!