System.Web.UI.Page.IsValid Property

Gets a value indicating whether page validation succeeded.

Syntax

[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public bool IsValid { get; }

Value

Documentation for this section has not yet been entered.

Remarks

For this property to return true, all validation server controls in the current validation group must validate successfully. You should check this property only after you have called the Page.Validate method, or set the CausesValidation property to true in the OnServerClick event handler for an ASP.NET server control that initiates form processing. These server controls include the System.Web.UI.WebControls.Button, System.Web.UI.HtmlControls.HtmlButton, System.Web.UI.HtmlControls.HtmlInputButton, System.Web.UI.HtmlControls.HtmlInputImage, System.Web.UI.WebControls.ImageButton, and System.Web.UI.WebControls.LinkButton classes.

If you force validation of a validation group using the Page.Validate(string) method, then all validation controls in the specified validation group must validate successfully as well.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0