Forums

ASP

This topic is locked

Using ASP to retrieve the current page's URL

Posted 23 Apr 2002 20:36:56
1
has voted
23 Apr 2002 20:36:56 elliot larson posted:
Is there any way to use ASP code to find out what the URL of a page is?

Here is why I ask: I am defining a repeat region on a page with subnavigational links, which, when clicked, pass variables to the same page. So after clicking one of these links, the URL might look like www.mysite.com/mypage.asp?link=link1.

I would then like to sort the resulting repeat region, using the same method - linking to the same page with a couple of sort variables tacked onto the end of the URL. But I first need to get the full, current URL, and then add the sort variables to it. Otherwise, I end up just sorting the full recordset.

Any help would be greatly appreciated.

Thanks,

Elliot
www.onhouse.net



Replies

Replied 25 Apr 2002 12:48:19
25 Apr 2002 12:48:19 Hank Tan-Tenn replied:
Look up ASP's

Request.ServerVariables("URL"

in any on-line ASP reference. It's pretty straightforward but very useful.

Reply to this topic