ASPxEdit.Validate() Method
Performs the editor’s validation.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v18.2.dll
Declaration
Remarks
This method allows you to programmatically perform validation of the editor control.
Example
<dx:ASPxLabel ID="lbl" runat="server" Text="E-mail:">
</dx:ASPxLabel>
<dx:ASPxTextBox ID="ASPxTextBox1" runat="server" Width="170px">
<ValidationSettings ValidateOnLeave="False">
<RequiredField ErrorText="E-mail is required" IsRequired="True" />
</ValidationSettings>
</dx:ASPxTextBox>
<dx:ASPxButton ID="btn" runat="server" Text="Submit" onclick="btn_Click" CausesValidation="False">
</dx:ASPxButton>
See Also