WHAT IS VIEWSTATE?

Pushpendra Singh

Total Post:0

Points:0
Posted by  Pushpendra Singh
 1472  View(s)
Ratings:
Rate this:
  1. Pushpendra Singh

    Post:240

    Points:1200
    What is Viewstate?

    viewstate  is oneof 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

      Modified On Mar-26-2018 05:33:22 AM

Answer

NEWSLETTER

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