ViewStateEncryptionMode Enumeration
.NET Framework 3.0
Specifies whether view-state information is encrypted.
Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
| Member name | Description | |
|---|---|---|
| Always | The view-state information is always encrypted. | |
| Auto | The view-state information is encrypted if a control requests encryption by calling the RegisterRequiresViewStateEncryption method. This is the default. | |
| Never | The view-state information is never encrypted, even if a control requests it. |
The following code example demonstrates setting the view-state encryption mode for a Page object and requesting encryption of the view-state information through the RegisterRequiresViewStateEncryption method. In this example, the view-state information will be encrypted when customer information is retrieved from a database.
Community Additions
ADD
Show: