System.Web.UI.ViewStateEncryptionMode Enumeration

Specifies whether view-state information is encrypted.

Syntax

public enum ViewStateEncryptionMode

Remarks

The System.Web.UI.ViewStateEncryptionMode enumeration provides values for specifying whether the view-state information in a System.Web.UI.Page object is encrypted. The System.Web.UI.ViewStateEncryptionMode value can be set only in the @ Page directive or in the pages section of the configuration file.

Members

Member NameDescription
Always

The view-state information is always encrypted.

Auto

The view-state information is encrypted if a control requests encryption by calling the Page.RegisterRequiresViewStateEncryption method. This is the default.

Never

The view-state information is never encrypted, even if a control requests it.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0