本文介绍了重定向pag时获取异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好, 这是我的代码
Response.Redirect( ../ afterchangepassword.aspx, True )响应。结束()重定向我的页面后,我在m页面上有例外。 所以我需要做的就是解决这个问题 谢谢你提前 Velsamy
解决方案你应该写下你得到的例外。 这里我猜你可能有 ThreadAbortException [ ^ ],因为您正在使用 Response.End()。如果是,那么你可以参考以下链接: 如何避免Response.End()线程被中止Excel文件下载期间出现异常 [ ^ ] Response.End()的替代方案? [ ^ ] support.microsoft/kb/312629 [ ^ ] 希望有所帮助:) 好运气。
hi all, This is my code
Response.Redirect("../afterchangepassword.aspx", True) Response.End()after redirecting my page, i got exception in m page. so what i have to do to resolve this Thanks in advance Velsamy
解决方案 You should write which exception you are getting. here I am just guessing that you might have got ThreadAbortException[^] since you are using Response.End(). If so then you can refer following links : How to Avoid Response.End() "Thread was being aborted" Exception during the Excel file download[^] Alternative to Response.End()?[^] support.microsoft/kb/312629[^] Hope it helps :) Good luck.更多推荐
重定向pag时获取异常
发布评论