Hi,
If you want just the name of the current file:
request.servervariables("PATH_INFO")
If you want the whole URL to the file returned:
xyz = "http://" & request.servervariables("LOCAL_ADDR") & _
request.servervariables("PATH_INFO")
HTH.
JT, on Thu, 15 Jan 2004 09:54:53 -0600, had to say:
> is there a command in asp to get the name of the current page?
>
> furthermore, is there a way to retrieve the name of the current page within
> an 'included' file (not the name of the included page, but the name of the
> page that is including the file)?
>
> i hope im making sense
>
> thanks for the help
|