aspnet-devexpress-dot-web-dot-aspxbutton-c2316ad1.md
Gets or sets a value indicating whether the button click initiates validation (client and server).
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue(true)]
public virtual bool CausesValidation { get; set; }
<DefaultValue(True)>
Public Overridable Property CausesValidation As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true, if the button click performs validation; otherwise, false.
|
By default, a button click forces validation of an editor group that is specified by the ASPxButton.ValidationGroup property.
Note
Set the CausesValidation property to false when you use the ASPxButton.PostBackUrl property to post back to a different page. You should explicitly check validation when posting back to a different page.
You can use the following API to specify validation settings:
<dx:ASPxButton ID="ASPxButton1" runat="server" AutoPostBack="False" Text="ASPxButton" CausesValidation="False" />
See Also