重定向pag时获取异常

编程入门 行业动态 更新时间:2024-10-09 17:26:28
本文介绍了重定向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时获取异常

本文发布于:2023-10-12 05:13:26,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1483815.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:重定向   异常   pag

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!