ServerValidateEventArgs.IsValid Property

 
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.

Gets or sets whether the value specified by the Value property passed validation.

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

member IsValid : bool with get, set

Property Value

Type: System.Boolean

true to indicate that the value specified by the Value property passed validation; otherwise, false.

Once your validation routine finishes, use the IsValid property to indicate whether the value specified by the Value property passed validation. This value determines whether the input control associated with the CustomValidator control passed validation.

The following example demonstrates how to use the IsValid property to store the results of the validation.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: