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)

In JScript, you can handle the events defined by a class, but you cannot define your own.
Not applicable.

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.

No code example is currently available or this language may not be supported.

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, 1.1

Community Additions

ADD
Show: