System.Web.UI.WebControls.ServerValidateEventArgs Class

Provides data for the CustomValidator.ServerValidate event of the System.Web.UI.WebControls.CustomValidator control. This class cannot be inherited.

See Also: ServerValidateEventArgs Members

Syntax

public class ServerValidateEventArgs : EventArgs

Remarks

A System.Web.UI.WebControls.ServerValidateEventArgs is passed to the CustomValidator.ServerValidate event handler to provide event data to the handler. The CustomValidator.ServerValidate event is raised when validation is performed on the server. This allows you to perform a custom server-side validation routine on the value of an input control (with a System.Web.UI.WebControls.CustomValidator control associated with it) in the event handler.

The value to validate is determined by using the ServerValidateEventArgs.Value property. Once your code has determined whether the value is valid, store the results of the validation in the ServerValidateEventArgs.IsValid property.

For a list of initial property values for an instance of System.Web.UI.WebControls.ServerValidateEventArgs, see the ServerValidateEventArgs.#ctor(string, bool) constructor.

For more information about handling events, see [<topic://cpconEventsOverview>].

Requirements

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