首页 >> 文摘 >> ASP/ASP.NET

asp获取URL的方法

采集日期:2008-4-29作者:lij1997(注:本数据由系统自动采集,内容与BHCODE无关)
方法一:简单,得不到参数,只有一个虚拟路径 GetUrl =request("url") 方法二:得到整个URL,得到参数 '得到当前页面的地址        Function    GetUrl()        On    Error    Resume    Next        Dim    strTemp        If    LCase(Request.ServerVariables("HTTPS"))    =    "off"    Then        strTemp    =    "http://"        Else        strTemp    =    "https://"        End    If        strTemp    =    strTemp    &    Request.ServerVariables("SERVER_NAME")        If    Request.ServerVariables("SERVER_PORT")    <>    80    Then    strTemp    =   
本周推荐
MORE
热点关注
MORE