最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

asp中獲取當(dāng)前頁面的地址與參數(shù)的函數(shù)代碼

 更新時間:2011年01月06日 00:15:45   作者:  
asp中獲取當(dāng)前頁面的地址與參數(shù)的函數(shù)代碼,經(jīng)常需要用得到,特整理下,方便需要的朋友。
復(fù)制代碼 代碼如下:

Function getCurrentUrl()
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 = strTemp & ":" & Request.ServerVariables("SERVER_PORT")
end if
strTemp = strTemp & Request.ServerVariables("URL")
getCurrentUrl = strTemp
End Function

Function getUrlWithParams()
Dim ScriptAddress,Servername,qs
ScriptAddress = CStr(Request.ServerVariables("SCRIPT_NAME"))
Servername = CStr(Request.ServerVariables("Server_Name"))
qs=Request.QueryString
If Request.ServerVariables("SERVER_PORT") <> 80 Then
Servername = Servername & ":" & Request.ServerVariables("SERVER_PORT")
end if
if qs<>"" then
getUrlWithParams ="http://"& Servername & ScriptAddress &"?"&qs
else
getUrlWithParams ="http://"& Servername & ScriptAddress
end if
End Function

相關(guān)文章

最新評論

正定县| 陆良县| 宝坻区| 洛宁县| 梁平县| 新宁县| 临江市| 桑日县| 彭泽县| 亳州市| 和田县| 贵溪市| 灵丘县| 吴川市| 八宿县| 泊头市| 祥云县| 循化| 天水市| 江川县| 绥棱县| 光山县| 英吉沙县| 浪卡子县| 汾西县| 林州市| 玉山县| 武陟县| 菏泽市| 清流县| 句容市| 巴南区| 睢宁县| 元氏县| 洞口县| 赤峰市| 顺平县| 田阳县| 天峻县| 新乡县| 吴旗县|