首页 > 其他 > 详细

Response.Redirect 无法跳转页面

时间:2016-05-30 12:32:40      阅读:220      评论:0      收藏:0      [点我收藏+]

错误现象:Response.Redirect(Server.MapPath("BackIndex.aspx"));

打断点测试执行了这一句,Server.MapPath("BackIndex.aspx")路径也没问题,网上有说webconfig配置了登录验证,改了<authentication mode="None">后,仍然不跳转页面,抓狂!!!

技术分享

解决方法:去掉Server.MapPath,直接使用Response.Redirect("BackIndex.aspx");能跳转。。。

原理:正迷茫中。。。

技术分享

Response.Redirect 无法跳转页面

原文:http://www.cnblogs.com/zhyue93/p/Redirect.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!