ASPxClientQueryBuilder.OnServerError Event
Occurs on the client each time a server-side error raises.
Namespace: DevExpress.XtraReports.Web.Scripts
Assembly: DevExpress.XtraReports.v18.2.Web.Scripts.dll
Declaration
Event Data
The OnServerError event's data class is ASPxClientErrorEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Error | Provides access to information about a server-side error. |
Remarks
Handle the OnServerError event to perform actions when an Ajax request completes with an error.
The following code snippet demonstrates how to show an alert box when any internal server error occurs.
<script type="text/javascript" id="script">
function onError(s, e) {
alert("Internal Server Error occurs");
}
</script>
<dx:ASPxQueryBuilder ID="ASPxQueryBuilder1" runat="server">
<ClientSideEvents OnServerError="onError"/>
</dx:ASPxQueryBuilder>
See Also