CustomValidator::ServerValidate Event

 

Occurs when the CustomValidator validates the value of the ControlToValidate property. This API is obsolete. For information about how to develop ASP.NET mobile applications, see the www.asp.net/mobile Web site.

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

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

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.

.NET Framework
Available since 1.1

CustomValidator Class
System.Web.UI.MobileControls Namespace
Introduction to the CustomValidator Control
Adding and Configuring a CustomValidator Control

Return to top
Show: