Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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()

Implements

IValidator.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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
Show:
© 2015 Microsoft