Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 2.0
System.Web.UI
Page Class
Page Properties
 EnableEventValidation Property

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
.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)

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.

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
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker