Find the Current URL in ASP
The full URL to a page comes in three parts: The domain name, the path to the file then the filename, and the QueryString. For example, take the URL
http://www.example.com/example/page.asp?name=Bob. The three parts of this are:
- The domain name:
- The path to the page:
- The QueryString:
So how do you find it all out with your own scripts?
Well the following code should do it: