取得当前页面的URL

string RawUrl = Request.Url.ToString();
            RawUrl = RawUrl.Substring(RawUrl.IndexOf("://") + 3);
            if (RawUrl.IndexOf("/") > 0)
            {
                RawUrl = RawUrl.Substring(0, RawUrl.IndexOf("/"));
            }
posted @ 2008-04-02 23:07  scgw  阅读(508)  评论(0编辑  收藏  举报