PagesSection.ViewStateEncryptionMode Property
.NET Framework 4.5
Gets or sets the encryption mode that ASP.NET uses when maintaining ViewState values.
Namespace: System.Web.Configuration
Assembly: System.Web (in System.Web.dll)
[ConfigurationPropertyAttribute("viewStateEncryptionMode", DefaultValue = ViewStateEncryptionMode.Auto)] public ViewStateEncryptionMode ViewStateEncryptionMode { get; set; }
Property Value
Type: System.Web.UI.ViewStateEncryptionModeA ViewStateEncryptionMode enumeration value indicating when the ViewState values are encrypted.
The possible ViewStateEncryptionMode enumeration values are Always, Auto, and Never. The default value is Auto. If ViewStateEncryptionMode property is set to Auto, ViewState will be encrypted when a control requests it.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.