By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,876 Members | 1,206 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,876 IT Pros & Developers. It's quick & easy.

relative addressing for URLs

P: n/a
Anyone know of a site that gives all of the syntax of relative addressing
for URLS?
for example: /, ./, ../, etc.

Thanks!
Jul 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
If I use relative, I either use relative from the ROOT:

<img src=/images/file.jpg>

Or relative from the current location:

<img src=images/file.jpg>

I've developed ASP applications since IIS 3.0 and I have yet to use ./ or
.../


"twells" <tw****@les.com> wrote in message
news:ur**************@TK2MSFTNGP11.phx.gbl...
Anyone know of a site that gives all of the syntax of relative addressing
for URLS?
for example: /, ./, ../, etc.

Thanks!

Jul 19 '05 #2

P: n/a
This isn't much of anything but is something I put together that is at
least somewhat related which you can put into an ASP file and see the
results of:

Response.Write "Server.MapPath with . : " & Server.MapPath(".") & "<br>"
Response.Write "Server.MapPath with .. : " & Server.MapPath("..") &
"<br>"
Response.Write "Server.MapPath with ../logs : " &
Server.MapPath("../logs") & "<br>"
Response.Write "Server.MapPath with / : " & Server.MapPath("/") & "<br>"
Response.Write "Server.MapPath with /. : " & Server.MapPath("/.") &
"<br>"
Response.Write "Server.MapPath with /.. : " & Server.MapPath("/..") &
"<br>"
Response.Write "Server.MapPath with /../ : " & Server.MapPath("/../") &
"<br>"
Response.Write "Server.MapPath with /../.. : " &
Server.MapPath("/../..") & "<br>"
Response.Write "Server.MapPath with /../../ : " &
Server.MapPath("/../../") & "<br>"
Response.Write "Server.MapPath with /../www : " &
Server.MapPath("/../www") & "<br>"
Response.Write "Server.MapPath with /../logs : " &
Server.MapPath("/../logs") & "<br>"
Response.Write "Server.MapPath with /../hi : " &
Server.MapPath("/../hi") & "<br>"

Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.