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

首頁 > 編程 > ASP > 正文

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

2020-07-27 12:49:54
字體:
來源:轉載
供稿:網友
復制代碼 代碼如下:

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
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 武胜县| 黑龙江省| 台中市| 孝感市| 元阳县| 全州县| 济源市| 涿鹿县| 双辽市| 曲沃县| 广水市| 咸宁市| 永川市| 富宁县| 南阳市| 永修县| 泰安市| 武冈市| 新乡县| 吴江市| 阿坝| 布尔津县| 伊金霍洛旗| 沽源县| 三门峡市| 冕宁县| 柏乡县| 嵊泗县| 凭祥市| 宕昌县| 怀来县| 运城市| 和平区| 历史| 镇巴县| 佛冈县| 平陆县| 浦东新区| 体育| 阳曲县| 密山市|