ServerValidateEventArgs::IsValid Property

 

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)

public:
property bool IsValid {
	bool get();
	void set(bool value);
}

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: