Is there a method of returning the name of the current URL, without any of the path details? I am currently using request.serverVariables("url"), but this returns the name of the page and its path. This is forces me to use the following IF statement to get my page to work correctly
<
If request.serverVariables("url") = "/pp/DEV/messages.asp" Then ..
%
This works fine. But since the URL is hard-coded, when I move my development pages to live I am forced to go in and change the script (and others) as follows
<
If request.serverVariables("url") = "/pp/LIVE/messages.asp" Then ..
%
I've looked at the other serverVariables available but none seem to just return the name of the page. Can anyone suggest a remedy for this
TIA
Coli