jQuery ajax in ASP.NET with customErrors mode="On"
Posted
by Adrian Magdas
on Stack Overflow
See other posts from Stack Overflow
or by Adrian Magdas
Published on 2010-04-21T13:07:12Z
Indexed on
2010/04/21
13:13 UTC
Read the original article
Hit count: 542
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
© Stack Overflow or respective owner