得到当前地址栏的地址
我现在的地址是:http://localhost/test/chi/view.aspx
这个地址是映射的地址,真实的地址是:http://localhost/default.aspx
我想得到映射的地址:http://localhost/test/chi/view.aspx
下面有一些方法,都获得的是真实的地址:
[color=#0000FF]Request.Url.AbsoluteUri;
HttpContext.Current.Request.Url.PathAndQuery;
JS也不成:
sb.Append("<script>\n");
sb.Append("var s=\"http://\" + window.location.host + window.location.pathname;");
sb.Append("document.write(s)");
sb.Append("</script>");[/color]
那位兄弟帮帮忙吧,可能没分了,有的话都献出来,各位包涵