System.Web.UI.WebControls.ListControl.CausesValidation Property

Gets or sets a value indicating whether validation is performed when a control that is derived from the System.Web.UI.WebControls.ListControl class is clicked.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

Use the ListControl.CausesValidation property to determine whether validation is performed when a System.Web.UI.WebControls.ListControl control is clicked. Page validation determines whether the input controls that are associated with a validation control on the page all pass the validation rules that are specified by the validation control.

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

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

The value of this property is stored in view state.

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