try catch 和 response.Redirect 一起使用会发生“ThreadAbortException”的异常。。。。。
一个很好的方法:
try{
}
catch(ThreadAbortException ex){
//捕获 response.Redirect 产生的异常。
}
catch{
}
本文介绍了一种有效的方法来处理使用trycatch结合response.Redirect时出现的ThreadAbortException异常。通过特殊的try-catch结构,可以捕获由response.Redirect操作引发的异常。
try catch 和 response.Redirect 一起使用会发生“ThreadAbortException”的异常。。。。。
一个很好的方法:
try{
}
catch(ThreadAbortException ex){
//捕获 response.Redirect 产生的异常。
}
catch{
}

被折叠的 条评论
为什么被折叠?