.NET Framework Class Library
Page.EnableEventValidation Property

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)

Syntax

Visual Basic (Declaration)
Public Overridable Property EnableEventValidation As Boolean
Visual Basic (Usage)
Dim instance As Page
Dim value As Boolean

value = instance.EnableEventValidation

instance.EnableEventValidation = value
C#
public virtual bool EnableEventValidation { get; set; }
C++
public:
virtual property bool EnableEventValidation {
    bool get ();
    void set (bool value);
}
J#
/** @property */
public boolean get_EnableEventValidation ()

/** @property */
public void set_EnableEventValidation (boolean value)
JScript
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.
Remarks

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.

Platforms

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.

Version Information

.NET Framework

Supported in: 2.0
See Also

Tags :


Page view tracker