开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜