被请求页面的路径

 

        Response.Write(Request.ServerVariables["SCRIPT_NAME"]);

        Response.Write("</br>");

        Response.Write(Request.Url.AbsolutePath);

        Response.Write("</br>");

        Response.Write(Request.Url.AbsoluteUri);
        //输出
        /community/ye.aspx
        /community/ye.aspx
        http://localhost:3700/community/ye.aspx

posted @ 2008-02-22 15:39  yejun  阅读(252)  评论(0编辑  收藏  举报