代码改变世界

随笔分类 -  ASP.NET

关于ASP.NET 解决Response.Redirect ThreadAbortException异常注意事项

2012-07-12 18:44 by kaleyroy, 463 阅读, 收藏, 编辑
摘要: 大家知道ASP.NET中Response.Redirect()是用来跳转页面的.关于这个不用过多解释. 当在try catch 块中使用的时候会引发ThreadAbortException异常,这个网上很多都说了解决方案,下面我引用MS官方建议的解决方案.For Response.End, call the HttpContext.Current.ApplicationInstance.CompleteRequest method instead of Response.End to bypass the code execution to the Application_EndRequest 阅读全文
Make a memo, for a rainy day