PagesSection.ViewStateEncryptionMode Property
.NET Framework 3.0
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)
Assembly: System.Web (in system.web.dll)
/** @property */ public ViewStateEncryptionMode get_ViewStateEncryptionMode () /** @property */ public void set_ViewStateEncryptionMode (ViewStateEncryptionMode value)
public function get ViewStateEncryptionMode () : ViewStateEncryptionMode public function set ViewStateEncryptionMode (value : ViewStateEncryptionMode)
Not applicable.
Property Value
A 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.