469,352 Members | 1,697 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,352 developers. It's quick & easy.

Can I request the filename that was loaded?

Greetings again,

Thanks for all the great help so far.

One of the things I do is do my testing on an alternate address, then
store the file as the regular address after it tests correctly, but
since I might mention the test page in various forums when I ask
questions, I leave it uploaded just in case someone later sees the link
and clicks it.

So far, my kludgy way of handling it is to have a variable called
"thispage" and set it equal to the page I'm working on, so when it
links to itself, it links back to the page in question.

Is there a way of automatically testing for this value instead of
manually defining it? I tried a quick Google search, but I didn't know
what to call it. I assume it might be in the same general collection as
the HTTP_REFERER item.



Jan 16 '06 #1
2 1133

<Go******************@gmail.com> wrote (not sure you are right there)
Greetings again, ..> ...Is there a way of automatically testing for this value instead of manually defining it? ...

Are these any use?

'BaseURL - http:/www.mysite.com
BaseURL="http://" & Request.ServerVariables("HTTP_HOST")

'TopURL - /subdir1/subdir2/default.asp
TopURL = Request.ServerVariables("URL")


'PageFileName - default.asp

'ShortPath - /subdir1/subdir2/

HTH, Giles
Jan 16 '06 #2
Thanks, Giles,

PageFileName was EXACTLY what I wanted.

If you enjoy mazes, be sure to download the maze you find here:


That's the page that your code will save me a few minutes of future


*** Sent via Developersdex http://www.developersdex.com ***
Jan 16 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

21 posts views Thread by Michele Simionato | last post: by
6 posts views Thread by Christopher Brandsdal | last post: by
9 posts views Thread by Adam Monsen | last post: by
4 posts views Thread by Jit Prasad | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.