Command.CausesValidation Property

Definition

Gets or sets whether the specified control causes server-side validation to occur on all controls on the form. The default value is true. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

C#
[System.ComponentModel.Bindable(false)]
public bool CausesValidation { get; set; }

Property Value

true if the specified control causes server-side validation to occur on all controls on the form; otherwise, false.

Attributes

Remarks

For validation to occur on a form, the form must be submitted with a control that raises validation, and must have its CausesValidation property set to true. The Command control is currently the only control that raises validation.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also