国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > ASP > 正文

asp中獲取當前頁面的地址與參數的函數代碼

2024-05-04 11:00:01
字體:
來源:轉載
供稿:網友
復制代碼 代碼如下:
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
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 台安县| 武乡县| 濮阳市| 临西县| 汉沽区| 永和县| 天峻县| 乐平市| 汝南县| 花垣县| 志丹县| 东丰县| 伊春市| 和田县| 屯门区| 开阳县| 广饶县| 大化| 南陵县| 沧州市| 三门峡市| 三河市| 巴彦县| 安达市| 沙坪坝区| 磐安县| 格尔木市| 包头市| 松阳县| 永修县| 宁阳县| 陇南市| 海伦市| 静安区| 开化县| 焉耆| 凤阳县| 海南省| 吉安县| 丘北县| 鄂尔多斯市|