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)
Property Valuetrue 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.
The following code example shows how to use the EnableViewStateMac property.