I have custom errors enabled in my web.config file:
<customErrors mode="On" defaultRedirect="~/ErrorPage.aspx" />
When an error happens during an asynchronous postback in an UpdatePanel, the response comes back as a code 200 and the content set as the error page.
This breaks when the UpdatePanel tries to parse the response and throws a JavaScript exception:
Sys.WebForms.PageRequestManagerParserErrorException: message received from the server could not be parsed.
Is there a way to properly handle this on the client side without having to disable the custom error, as I do not want to divulge any exception details?