PagesSection.EnableEventValidation Property
Assembly: System.Web (in system.web.dll)
/** @property */ public boolean get_EnableEventValidation () /** @property */ public void set_EnableEventValidation (boolean value)
public function get EnableEventValidation () : boolean public function set EnableEventValidation (value : boolean)
Not applicable.
Property Value
true if event validation is enabled; otherwise, false.The default value is true. A Web application can optionally disable event validation to revert to .NET Framework version 1.0 behavior.
The EnableEventValidation attribute indicates whether event validation should be performed.
The base control checks this attribute to determine whether it should validate events. A derived control does not inherit this base control attribute, and so it is exempt from event validation by default.
The user can still instruct ASP.NET to perform event validation on the derived control by adding the EnableEventValidation attribute to the derived control itself and setting it to true.
Note: |
|---|
| This event validation mechanism eliminates the risk of unauthorized postback requests and callbacks. It instructs ASP.NET to validate only those specific events that can be raised on the control during a postback request or callback. With this model, a control registers its events during rendering and then validates the events during the post-back or callback handling. All event-driven controls in ASP.NET now use this feature by default. |
Note: