不行就再试一试这个
Request.Path

解决方案 »

  1.   

    Resquest.Path
    可以得到一部分
      

  2.   

    我試過用那幾個得到的都不是我要的"http://www.abc.com/bbs/",我都不明白微軟是怎麼想的。
      

  3.   

    Request.Url.ToString().Remove(Request.Url.ToString().IndexOf(Request.Path),Request.Path.Length)+Request.ApplicationPath+"/";
    呵呵,这样可以得到,不过有点复杂:)
      

  4.   


    Request.RawUrl
    这是得到当前路径的。另外你要手动加上http://www.abc.com的字符串
      

  5.   

    Response.Write(Request.Url)
    这个不就可以么