Tab
A newer version of this page is available. Switch to the current version.

ASPxWebControl.GetCallbackErrorMessage() Method

Obtains the error info while processing the redirection page.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public static string GetCallbackErrorMessage()
Public Shared Function GetCallbackErrorMessage As String

Returns

Type Description
String

A string value representing the error info.

Remarks

When a server error occurs during a callback processing, and the request is redirected to a specific page (which is specified via the callbackErrorRedirectUrl option within a specific <devExpress> section of the Web.Config file), you can use the static GetCallbackErrorMessage method to obtain the error info within the redirection page.

See Response Redirection on Callback Exceptions to learn more.

Examples

In this example, the error message is displayed within the redirected page (Error.aspx) after an exception occurs on a callback within the Default.aspx page.

The redirection page is specified within the devExpress -> errors section of the web.config file via the callbackErrorRedirectUrl key (see Redirection on a Callback Error). The error message is obtained by using the static ASPxWebControl.GetCallbackErrorMessage method.

NOTE

To provide the message redirection between pages, the ASPxHttpHandlerModule should be registered within the web.config file.