System.Web.UI.WebControls.CustomValidator.OnServerValidate Method

Raises the CustomValidator.ServerValidate event for the System.Web.UI.WebControls.CustomValidator control.

Syntax

protected virtual bool OnServerValidate (string value)

Parameters

value
The value to validate.

Returns

true if the value specified by the value parameter passes validation; otherwise, false.

Remarks

The CustomValidator.ServerValidate event is raised when validation is performed on the server.

Raising an event invokes the event handler through a delegate. For more information, see Events and Delegates.

The CustomValidator.OnServerValidate(string) method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0