Re: Relative and Absolute Address
From: Chris Barber (chris_at_blue-canoe.co.uk.NOSPAM)
Date: 05/25/04
- Next message: Jeff Dillon: "Re: Relative and Absolute Address"
- Previous message: Magnus: "Re: Convert text to image"
- In reply to: Nick K.: "Relative and Absolute Address"
- Next in thread: Roland Hall: "Re: Relative and Absolute Address"
- Reply: Roland Hall: "Re: Relative and Absolute Address"
- Reply: Nick K.: "Re: Relative and Absolute Address"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 26 May 2004 00:16:33 +0100
This has been (and still is) the most stupid behaviour ever introduced into IIS and it's been the
bane of my life for some time now. I usually resort to a number of mechanisms to find the correct
reference to the root of the web application (as opposed to site) and *never* use root relative
url - not least of all because it breaks the capability to do local server-side debugging.
You'll have to dig in and replace all those references with either relative references or some
variable reference that replaces the first '/' with the *real* url required.
AFAIK there isn't a simplistic replacement to the root '/' identifier in a url.
Chris
"Nick K." <nospam@bogus.com> wrote in message news:e27sppqQEHA.3708@TK2MSFTNGP10.phx.gbl...
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 that
to relative "images". This works in some cases but not in all because some
of the asp pages are in sub folders and all include the same include file.
I believe there is addressing like "~/" in .Net that would look in the web
application directory but this doesn't seem to work in asp. Does anyone have
a way to address a gif file from the web application level and not the web
server level?
- Next message: Jeff Dillon: "Re: Relative and Absolute Address"
- Previous message: Magnus: "Re: Convert text to image"
- In reply to: Nick K.: "Relative and Absolute Address"
- Next in thread: Roland Hall: "Re: Relative and Absolute Address"
- Reply: Roland Hall: "Re: Relative and Absolute Address"
- Reply: Nick K.: "Re: Relative and Absolute Address"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|