Asp:

Request.ServerVariables("HTTP_REFERER") 获取上一页URL

 获取当前页地址:

 

sub procUpdateReportUrl(objConn)
  
Dim urlStr
  
if Request.ServerVariables("SERVER_PORT"<> "443" then
   urlStr 
= "http://" 
  
else
    urlStr 
= "https://" 
  
end if
  urlStr 
= urlStr & Request.ServerVariables("SERVER_NAME"& Request.ServerVariables("URL"
  
if Request.ServerVariables("QUERY_STRING")<>"" then
    urlStr 
= urlStr & "?" & Request.ServerVariables("QUERY_STRING")
  
end if
end sub

相关文章:

  • 2021-11-18
  • 2021-08-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
猜你喜欢
  • 2022-02-10
  • 2022-12-23
  • 2021-06-11
  • 2021-09-19
  • 2021-07-08
相关资源
相似解决方案