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.
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 Page.RegisterRequiresViewStateEncryption method. This is the default. |
Never |
The view-state information is never encrypted, even if a control requests it. |