Sometime in ajax controller u wanna return back error message and Onfailure will be called only if status code is 500 and usually this error is handled by IIS, to skip this error do following:
Server.ClearError();
Response.StatusCode = 500;
Response.TrySkipIisCustomErrors = true;
+
No comments:
Post a Comment