BaseValidator.Validate Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
Show: