Posted on 1:16 AM by Softminer and filed under
Ajax,
ASP.NET,
MVC
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;
+
Post a Comment