L
Leszek
Hello,
Could anybody explain what's a difference between a virtual directory and an
application root under IIS? I'm a little bit confused.
This is mu problem:
Let's assume the following directory structure:
FileManager (application name a.k.a. virtual directory?)
Images
header.gif
Styles
styles.css
Scripts
start.aspx
The start.aspx script utilizes the images and styles in the following way:
<link rel="stylesheet" href="/FileManager/Styles/styles.css"
type="text/css">
<img src="/FileManager/Images/header.gif">
That's fine when the name of the virtual directory is "FileManager", but it
might be different. I do not know the name when I design start.aspx. I would
prefer to use something like this:
<link rel="stylesheet" href="/Styles/styles.css" type="text/css">
<img src="/Images/header.gif">
I can use this syntax on Unix (/ means "start from the root directory" - I
do not need to provide the directory name), but it seems IIS requires the
application name.
Am I doing something wrong? Is there any solution for this issue?
Thanks,
Leszek Taratuta
Could anybody explain what's a difference between a virtual directory and an
application root under IIS? I'm a little bit confused.
This is mu problem:
Let's assume the following directory structure:
FileManager (application name a.k.a. virtual directory?)
Images
header.gif
Styles
styles.css
Scripts
start.aspx
The start.aspx script utilizes the images and styles in the following way:
<link rel="stylesheet" href="/FileManager/Styles/styles.css"
type="text/css">
<img src="/FileManager/Images/header.gif">
That's fine when the name of the virtual directory is "FileManager", but it
might be different. I do not know the name when I design start.aspx. I would
prefer to use something like this:
<link rel="stylesheet" href="/Styles/styles.css" type="text/css">
<img src="/Images/header.gif">
I can use this syntax on Unix (/ means "start from the root directory" - I
do not need to provide the directory name), but it seems IIS requires the
application name.
Am I doing something wrong? Is there any solution for this issue?
Thanks,
Leszek Taratuta