System.Web.UI.WebControls.CheckBox.CausesValidation Property

Gets or sets a value indicating whether validation is performed when the System.Web.UI.WebControls.CheckBox control is selected.

Syntax

[System.Web.UI.Themeable(false)]
[System.ComponentModel.DefaultValue(false)]
public virtual bool CausesValidation { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the CheckBox.CausesValidation property to determine whether validation is performed on both the client and the server when a System.Web.UI.WebControls.CheckBox control is selected. Page validation determines whether the input controls that are associated with a validation control on the page all pass the validation rules as specified by the validation control.

By default, clicking a System.Web.UI.WebControls.CheckBox control does not cause page validation. To perform page validation when the System.Web.UI.WebControls.CheckBox control is clicked, set the CheckBox.CausesValidation property to true.

When the value of the CheckBox.CausesValidation property is set to true, you can also use the CheckBox.ValidationGroup property to specify the name of the validation group for which the System.Web.UI.WebControls.CheckBox control causes validation.

This property cannot be set by themes or style sheet themes. For more information, see System.Web.UI.ThemeableAttribute and ASP.NET Themes Overview.

Requirements

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