Note: This property is new in the .NET Framework version 2.0.
Gets or sets a value indicating whether the page validates postback and callback events.
Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)
Visual Basic (Declaration)
Public Overridable Property EnableEventValidation As Boolean
Dim instance As Page
Dim value As Boolean
value = instance.EnableEventValidation
instance.EnableEventValidation = value
public virtual bool EnableEventValidation { get; set; }
public:
virtual property bool EnableEventValidation {
bool get ();
void set (bool value);
}
/** @property */
public boolean get_EnableEventValidation ()
/** @property */
public void set_EnableEventValidation (boolean value)
public function get EnableEventValidation () : boolean
public function set EnableEventValidation (value : boolean)
Property Value
true if the page validates events; otherwise, false.The default is true.
In most circumstances, set the EnableEventValidation property by setting the enabledEventValidation attribute of the @ Page directive or the enableEventValidation attribute of the pages element of the Web.config file. If you set the EnableEventValidation property in code, set it in the Page_Init phase of page processing.
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
.NET Framework
Supported in: 2.0