PagesSection.EnableViewStateMac Property
.NET Framework 3.0
Gets or sets a value that specifies whether ASP.NET should run a message authentication code (MAC) on the page's view state when the page is posted back from the client.
Namespace: System.Web.Configuration
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
/** @property */ public boolean get_EnableViewStateMac () /** @property */ public void set_EnableViewStateMac (boolean value)
public function get EnableViewStateMac () : boolean public function set EnableViewStateMac (value : boolean)
Not applicable.
Property Value
true if ASP.NET should run a message authentication code (MAC) on the page's view state when the page is posted back from the client; otherwise, false. The default is false.A view-state MAC is an encrypted version of the hidden variable that a page's view state is persisted to when sent to the browser. If true, the encrypted view state is checked to verify that it has not been tampered with on the client. Do not set EnableViewStateMac to true if performance is a key consideration.