Skip to main content

Redirect a Response on a Callback Exception

When a callback exception occurs, you can redirect the application to another web resource in the following ways:

On the redirection page, you can call the static GetCallbackErrorMessage() method to obtain exception-related information.

public partial class Error : Page {
    protected void Page_Load(object sender, EventArgs e) {
        string errorMessage = ASPxWebControl.GetCallbackErrorMessage();
        Response.Output.Write(errorMessage);
    }
}
See Also