Gets or sets the encryption mode of the view state.
Assembly: System.Web (in System.Web.dll)
Theproperty cannot be set in code. It can only be set in the directive or in the < element of the configuration file. Values set in the directive override any values set in the configuration file.
The syntax for setting this property in the directive is as follows:
The syntax for setting this property in the configuration file is as follows:
Custom control developers may wish to check the value of this property in code before saving potentially sensitive data to view state in their control.
Available since 2.0