I meant <!--#include virtual="/common/include.asp" -->
The problem with relative paths is, the files could move from one directory
to another, and you need to change them unnecessarily.
--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"Aaron Bertrand [MVP]" <aaron@TRASHaspfaq.com> wrote in message
news:%23RasHwaFEHA.3080@tk2msftngp13.phx.gbl...[color=blue]
> Do you mean <!--#include file="c:\inetpub\wwwroot\shared\common.css"-->
> ?
>
> If so, I can think of at least one problems with this, and that is that[/color]
your[color=blue]
> web host might change the location of the webroot, or create virtual
> directories to some or all of your files.
>
> If you have a sane directory structure, referencing virtual from the root
> should work perfectly, and isn't vulnerable to changes to the actual file
> system.
>
> --
> Aaron Bertrand
> SQL Server MVP
>
http://www.aspfaq.com/
>
>
> "Manohar Kamath [MVP]" <mkamath@TAKETHISOUTkamath.com> wrote in message
> news:efATThaFEHA.3372@TK2MSFTNGP10.phx.gbl...[color=green]
> > Use absolute paths for common elements (includes, stylesheets, etc.)[/color][/color]
than[color=blue][color=green]
> > relative paths. Takes care of many problems than you know :)
> >
> > --
> > Manohar Kamath
> > Editor, .netWire
> >
www.dotnetwire.com
> >
> >
> > "Bryan Harrington" <news@psacake.com> wrote in message
> > news:euwcqPaFEHA.1128@TK2MSFTNGP11.phx.gbl...[color=darkred]
> >> Hello all.. I'm working on an application that I'd like to use some
> >> shared
> >> files.
> >>
> >> Right now my directory structure is:
> >>
> >> / (root)
> >> .../Shared/
> >> .../Reports/
> >> .../Tools/
> >>
> >> I would like to have CSS, shared functions etc.. in the shared folder
> >> and
> >> use them in the root, reports and tools.
> >>
> >> So.. in my dev environment I don't have a problem, but I have a remote
> >> developer that wants to install in a subdirectory.. so all my includes[/color]
> > don't[color=darkred]
> >> work..
> >>
> >> <!--#INCLUDE FILE="shared/Common.asp"-->
> >>
> >> should I change to virtual? I'm stuck on how to make this work in both
> >> installing in a root web situation, and a sub directory situation.
> >>
> >> Thoughts?
> >>
> >>[/color]
> >
> >[/color]
>
>[/color]