Re: ~ character
From: S. Justin Gengo (sjgengo_at_aboutfortunate.com)
Date: 04/16/04
- Next message: Curt_C [MVP]: "Re: Obtaining older versions of IE for testing"
- Previous message: Lostinet: "Re: Obtaining older versions of IE for testing"
- In reply to: suzy: "~ character"
- Next in thread: S. Justin Gengo: "Re: ~ character"
- Reply: S. Justin Gengo: "Re: ~ character"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 16 Apr 2004 08:29:30 -0500
The tilde character represents the root of the web site. It automatically
starts you at the base folder.
So for example, if your folder structure was: c:\inetpub\wwwroot\mysite
And inside of the site you had the folders:
pages
images
Normally if you were in the pages folder and needed to access an image you
would have to use "..":
<img src="../images/myimage.gif">
Of course if you had another folder inside of pages and you were in a file
there you'd need two sets of "..":
<img src="../../images/myimage.gif">
But using the tilde you automatically start at the root directory and don't
need to know how far back in the directory structure any folder is:
<img src="~/images/myimage.gif">
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
"suzy" <suzy@spam.com> wrote in message
news:faQfc.20470$Z07.6303@news-binary.blueyonder.co.uk...
> i have seen examples where the ~ character is used in the web.config file
> when storing directories.
>
> eg: ~/files/data.xml
>
> what does that character mean?
>
>
>
- Next message: Curt_C [MVP]: "Re: Obtaining older versions of IE for testing"
- Previous message: Lostinet: "Re: Obtaining older versions of IE for testing"
- In reply to: suzy: "~ character"
- Next in thread: S. Justin Gengo: "Re: ~ character"
- Reply: S. Justin Gengo: "Re: ~ character"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|