MobilePage.EnableEventValidation Property

Gets or sets a value indicating whether postback event data should be validated.

Namespace: System.Web.UI.MobileControls
Assembly: System.Web.Mobile (in system.web.mobile.dll)

public override bool EnableEventValidation { get; set; }
/** @property */
public boolean get_EnableEventValidation ()

/** @property */
public void set_EnableEventValidation (boolean value)

public override function get EnableEventValidation () : boolean

public override function set EnableEventValidation (value : boolean)

Not applicable.

Property Value

false.

Exception typeCondition

NotSupportedException

An attempt was made to set this property.

ASP.NET controls create client-side scripts to raise postback events on the server. It is possible for a malicious user to use the postback script to send arbitrary post events to server controls. For this reason, ASP.NET version 2.0 controls validate the event data to ensure that the event was raised by client-side code rendered by the control.

Event validation is not supported in mobile pages.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: