国产探花免费观看_亚洲丰满少妇自慰呻吟_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
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 于田县| 潼关县| 荔浦县| 陇南市| 栾川县| 宁南县| 普定县| 射洪县| 玉林市| 易门县| 鹰潭市| 通江县| 石泉县| 曲周县| 岢岚县| 福海县| 绥江县| 黑河市| 南岸区| 永定县| 怀安县| 县级市| 仙游县| 齐齐哈尔市| 成武县| 穆棱市| 江城| 永修县| 瑞金市| 南乐县| 凌源市| 莆田市| 沧源| 溆浦县| 弋阳县| 山西省| 金川县| 武威市| 新宁县| 遵义市| 阜阳市|