/ Published in: ASP

This function return the current Url, including the Get parameters.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Function CurrentURLWithParams() Dim Temp Temp = "http://" & Request.ServerVariables("SERVER_NAME") Temp = Temp & Request.ServerVariables("SCRIPT_NAME") If Request.ServerVariables("QUERY_STRING") <> "" Then Temp = Temp & "?" & Request.ServerVariables("QUERY_STRING") End If CurrentURLWithParams = Temp End Function
Comments
