jQuery ajax in ASP.NET with customErrors mode="On"
- by Adrian Magdas
Hi, any idea how to retrieve the original exception thrown on server side when doing
ajax calls with jQuery and using
customErrors mode="On"
in web.config.
If mode="Off" I can take the error using this function:
error: function(xhr, status, error) {
var error = JSON.parse(xhr.responseText);
alert(error.Message);
}
Thanks,
Adrian