Response.Redirect 无法跳转页面

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

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

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

原理:正迷茫中。。。

posted @ 2016-05-30 11:31  zhyue93  阅读(2572)  评论(0编辑  收藏  举报