PagesSection.ViewStateEncryptionMode Property
.NET Framework (current version)
Gets or sets the encryption mode that ASP.NET uses when maintaining ViewState values.
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.
.NET Framework
Available since 2.0
Available since 2.0
Show: