Validate Method

BaseValidator.Validate Method ()


Performs validation on the associated input control and updates the IsValid property.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public void Validate()

Use the Validate method to perform validation on the associated input control. This method allows you to programmatically perform validation on the input control. The IsValid property is automatically updated with the validation results.

For an example of the Validate method used in a derived class, see the CompareValidator class overview.

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft