ASPxButton.CausesValidation Property
Gets or sets a value indicating whether the button click initiates validation (client and server).
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
[DefaultValue(true)]
public virtual bool CausesValidation { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Boolean | true |
|
#Remarks
By default, a button click forces validation of an editor group that is specified by the ASPxButton.ValidationGroup property.
Note
Set the Causesfalse
when you use the ASPx
You can use the following API to specify validation settings:
- ASPxButton.ValidationContainerID - Specifies a container that contains controls for which the button causes validation.
- ASPxButton.ValidateInvisibleEditors - Specifies whether to validate both invisible and visible editors.
#Example
<dx:ASPxButton ID="ASPxButton1" runat="server" AutoPostBack="False" Text="ASPxButton" CausesValidation="False" />