Forum Moderators: open

Message Too Old, No Replies

getting file URL

         

lindajames

3:43 am on Jan 30, 2004 (gmt 0)

10+ Year Member



hi,

can anyone tell me how i can get the URL to a asp file called via the web. For example if i go to mydomain.com/pages/file.asp the file should display the exact url to that file [mydomain.com...] However, if there are any parameters being passed it should display that. so if i call pages/file.asp?param1=1234 it shouldnt display anything after the .asp bit.

At the moment i am using javascript but problem with that is that it gets the entire location including the?param etc..

any suggestions would be great.

cheers

lindajames

12:39 pm on Jan 30, 2004 (gmt 0)

10+ Year Member



doesnt matter, i've got it. im using: Request.ServerVariables("SCRIPT_NAME")