Finding out current URL in ASP - Tutorial
Heres how to get the current URL in ASP, including the domain name, URL or page name, and query string / parameters.
I found many answers just list the domain name and the page name, but dont list the query string of parameters passed to the page.
Here is how to get the complete details found in the Browser URL Box.
Current_page_URL = "http://" & Request.ServerVariables("SERVER_NAME") & Request.ServerVariables("URL") & "?" & Request.ServerVariables("QUERY_STRING")
If youre on a secure page ("https://"), change accordingly.