- 相關(guān)推薦
asp獲取當前URL代碼實(shí)例
asp獲取當前URL代碼
asp并不像javascript那樣直接用函數取得當前url,以前天真的認為asp沒(méi)有取得當前url的方法。但最近發(fā)現,其實(shí)是可以的。 If LCase(Request.ServerVariables("HTTPS")) = "off" Then
strTemp = ""
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
【asp獲取當前URL代碼實(shí)例】相關(guān)文章:
ASP編程實(shí)例大全05-29
ASP網(wǎng)頁(yè)程序設計中10個(gè)非常有用的實(shí)例代碼08-12
PHP url 加密解密函數代碼方法10-25
防盜鏈接ASP函數實(shí)現代碼01-23
ASP.NET連SQL7接口的源代碼06-06
ASP.NET MVC異常處理模塊簡(jiǎn)單教程-ASP.NET教程實(shí)例推薦07-19
JAVA認證基礎知識:Java獲取當前的系統時(shí)間06-08