Skip to main content
A newer version of this page is available.
All docs
V17.2

ASPxClientReportDesigner.OnServerError Event

Occurs on the client each time a server-side error raises.

Namespace: DevExpress.XtraReports.Web.Scripts

Assembly: DevExpress.XtraReports.v17.2.Web.Scripts.dll

Declaration

public event ASPxClientReportDesignerErrorEventHandler OnServerError

Event Data

The OnServerError event's data class is ASPxClientReportDesignerErrorEventArgs. 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 required 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:ASPxReportDesigner ID="ASPxReportDesigner1" runat="server">        
    <ClientSideEvents OnServerError="onError"/> 
</dx:ASPxReportDesigner>
See Also