Current Url With Parameters


/ Published in: ASP
Save to your folder(s)

This function return the current Url, including the Get parameters.


Copy this code and paste it in your HTML
  1. Function CurrentURLWithParams()
  2.  
  3. Dim Temp
  4. Temp = "http://" & Request.ServerVariables("SERVER_NAME")
  5. Temp = Temp & Request.ServerVariables("SCRIPT_NAME")
  6.  
  7. If Request.ServerVariables("QUERY_STRING") <> "" Then
  8. Temp = Temp & "?" & Request.ServerVariables("QUERY_STRING")
  9. End If
  10.  
  11. CurrentURLWithParams = Temp
  12.  
  13. End Function

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.