Call javascript function from Global.asax without redirect
When in my application occurs an exception (unhandled), i want to stay on the same web page and show an alert. Is it possible? Example: in page X is raised an uncaught exception, the control flow reaches the global.asa开发者_如何学编程x where it is handled by the Application_Error method. I don't want the global.asax to performe a Response.Redirect but I want to remain in page X and show a javascript alert.
Thanks
If you don't want to do Response.Redirect, try Server.Transfer. Server.Transfer Vs. Response.Redirect
精彩评论