CustomValidator.ServerValidate Event

Occurs when the CustomValidator validates the value of the ControlToValidate property.

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

[BindableAttribute(false)] 
public:
event ServerValidateEventHandler^ ServerValidate {
	void add (ServerValidateEventHandler^ value);
	void remove (ServerValidateEventHandler^ value);
}
/** @event */
public void add_ServerValidate (ServerValidateEventHandler value)

/** @event */
public void remove_ServerValidate (ServerValidateEventHandler value)

JScript supports the use of events, but not the declaration of new ones.

If a method is registered with this event, it is called with the value of the ControlToValidate property. Validation succeeds only if this event handler returns true.

The following example demonstrates how to trap the ServerValidate event to add logic to validate the page.

Windows 98, Windows 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 .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, 1.1

Community Additions

ADD
Show: