get the name of the current page

J

JT

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
 
R

Ray at

Take a look at the server variables that are available to you:

<%
For each q in Request.ServerVariables
Response.Write q & " = " Request.ServerVariables(q) & "<hr>"
Next
%>

Ray at work
 
M

Mikhail Esteves

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:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top