System.Web.UI.IValidator

Defines the properties and methods that objects that participate in Web Forms validation must implement.

See Also: IValidator Members

Syntax

public interface IValidator

Remarks

Classes that implement this interface represent a possible user input error. When the IValidator.Validate method is called, the class updates its IValidator.IsValid property to signify whether the error occurred. The IValidator.ErrorMessage property contains a text description of the error condition that you can display when the error occurs.

The System.Web.UI.WebControls.BaseValidator class implements this interface, and all other ASP.NET validation server control classes inherit from System.Web.UI.WebControls.BaseValidator. For information on validation server controls and how they work, see Validation ASP.NET Controls.

For details on how to develop custom ASP.NET validation server controls, see How to: Validate with a Custom Function for ASP.NET Server Controls.

Requirements

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