- 相關(guān)推薦
asp獲取當前URL代碼實例
asp獲取當前URL代碼
asp并不像javascript那樣直接用函數(shù)取得當前url,以前天真的認為asp沒有取得當前url的方法。但最近發(fā)現(xiàn),其實是可以的。 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代碼實例】相關(guān)文章:
ASP編程實例大全05-29
ASP網(wǎng)頁程序設計中10個非常有用的實例代碼08-12
ASP.NET連SQL7接口的源代碼06-06
ASP.NET MVC異常處理模塊簡單教程-ASP.NET教程實例推薦07-19
JAVA認證基礎知識:Java獲取當前的系統(tǒng)時間06-08
關(guān)于ASP.NET使用JavaScript顯示信息提示窗口實現(xiàn)原理及代碼05-09
淺析網(wǎng)站URL的SEO價值07-23