Forum Moderators: open
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