473,805 Members | 2,254 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

relative addressing for URLs

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

Thanks!
Jul 19 '05 #1
2 2531
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******** ******@TK2MSFTN GP11.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
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.Map Path with . : " & Server.MapPath( ".") & "<br>"
Response.Write "Server.Map Path with .. : " & Server.MapPath( "..") &
"<br>"
Response.Write "Server.Map Path with ../logs : " &
Server.MapPath( "../logs") & "<br>"
Response.Write "Server.Map Path with / : " & Server.MapPath( "/") & "<br>"
Response.Write "Server.Map Path with /. : " & Server.MapPath( "/.") &
"<br>"
Response.Write "Server.Map Path with /.. : " & Server.MapPath( "/..") &
"<br>"
Response.Write "Server.Map Path with /../ : " & Server.MapPath( "/../") &
"<br>"
Response.Write "Server.Map Path with /../.. : " &
Server.MapPath( "/../..") & "<br>"
Response.Write "Server.Map Path with /../../ : " &
Server.MapPath( "/../../") & "<br>"
Response.Write "Server.Map Path with /../www : " &
Server.MapPath( "/../www") & "<br>"
Response.Write "Server.Map Path with /../logs : " &
Server.MapPath( "/../logs") & "<br>"
Response.Write "Server.Map Path 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
2913
by: Nick K. | last post by:
I recently began maintenance work on a production web server that is located in the root directory of a web server. I moved this into a sub web on my local web server in order to do work on it. I found that there is an include file that references images: <img src = "/images/Header.gif" What worked correctly on the production server breaks on mine because of the absolute address "/images". I removed the absolute address and changed...
24
4502
by: sinister | last post by:
After doing a websearch, it appears that it's OK to omit the "http:" to form a relative URL. Are there any pitfalls to this? For example, if there is a page http://www.domain1.com/page1.html with a link to http://www.domain2.com/page2.html you can abbreviate the second link as //www.domain2.com/page2.html
2
4531
by: Simon Harvey | last post by:
Hi everyone, This is probably a pretty stupid question but does anyone know if its possible to use relative addressing when it comes to accessing an image of the file system? In particular, I am making a simple application that needs to load a treeview with icons. The icons are stored in a folder called icons under the application's directory. (The folder exists in the same dir as the bin folder and the debug folder)
0
1307
by: Jason Lawrence | last post by:
I have an attributed ATL project (call it B) that I am building with Microsoft Visual C++ .NET (55537-640-3684941- 18356). In the project I include the COM generated file A.h (from another ATL project A). The compiler interprets this and injects the command "import A.idl" into the idl for B. So far everything is okay. The problem is that when I build project B in debug, it references A.idl using the absolute path. When I build...
10
3164
by: tom | last post by:
hi group, i desperately need a function that will transform relative URLs to absolute URLs in the SRC part of <img> tags. ie: function makeAbsolute($html,$basehref) { //if regex match = relative URL ==> return img tag with absolute URL
3
1183
by: JebBushell | last post by:
I am unable to configure the addressing for images so that I can see them in a) the VS 2003 IDE, b) the site as hosted on my local machine, and c) the site as hosted in production. As an example, I have an <asp:image...> on the same page as an <IMG...>. Both controls are specified to display the same image file. However, in order to see both render image at the same in development, I need to address one as ../ and the other as ./ I...
1
4143
by: Rhiannone | last post by:
Can you use relative addressing when using response.redirect; i.e something that would look like this <% if session("superuser") <> true then response.redirect "../../../edit/logout.asp" %> or does it have to be absolute addressing. For the life of me I can’t find this explicitly written anywhere and I have been using file and virtual to include other pages so I’m curious to know how redirect works. I apologise if this question is silly for...
15
6472
by: Lars Eighner | last post by:
Aside from the deaths of a few extra electrons to spell out the whole root relative path, is there any down side? It seems to me that theoretically it shouldn't make any difference, and it would make it much easier to slap modualar blocks of markup into page frameworks, which may change and so forth. And the few extra bytes, which even for a fairly large site would not amount to as many bytes as are in a fairly small low-res image, should...
8
2191
by: NDayave | last post by:
Hey, I was wondering if there was a way to relatively address the location of a .ocx activeX plugin that is embedded in a form. I want to have the plugin embedded on a form, in a database that is going to be moved around very frequently on different computers- The details of this are inconsequential, there is no way for it to not move - so everything it needs has to travel with it. For example, pictures are stored in a folder next to the...
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10614
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10363
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7649
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5544
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4327
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3847
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.