asp.net 跳转到登录页面问题
我原先页面是 http://localhost/default.aspx
在default.aspx的页面里有一退出按钮想点击后跳转到login.aspx
我用了 Response.Redirect(Request.Url.Host + "/login.aspx");
可以再网站发布后跳转的网址的是
http://localhost/localhost/login.aspx
其它页面也是 (退出代码是一样的)
http://localhost/Query/QueryCard.aspx
点击退出变成了
http://localhost/Query/localhost/login.aspx
看起来原来的路径没变
我的login.aspx是放在根目录的
谁能指点一下