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.

public:
 property bool CausesValidation { bool get(); void set(bool value); };
[System.ComponentModel.Bindable(false)]
public bool CausesValidation { get; set; }
[<System.ComponentModel.Bindable(false)>]
member this.CausesValidation : bool with get, set
Public Property CausesValidation As Boolean

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

See also