开发者

Call javascript function from Global.asax without redirect

开发者 https://www.devze.com 2023-03-16 07:25 出处:网络
When in my application occurs an exception (unhandled), i want to stay on the same web page and show an alert. Is it possible?

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号