Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ViewStateEncryptionMode Property

PagesSection.ViewStateEncryptionMode Property

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)

public ViewStateEncryptionMode ViewStateEncryptionMode { get; set; }
/** @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.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2015 Microsoft