Re: Problems with #include using a nested virtual directory.
From: Ken Schaefer (kenREMOVE_at_THISadOpenStatic.com)
Date: 07/24/04
- Next message: Ken Schaefer: "Re: Problems with #include using a nested virtual directory."
- Previous message: Jonathan Maltz [MS-MVP]: "Re: Running multiple sub webs of one IIS"
- In reply to: MarcLancashire: "Re: Problems with #include using a nested virtual directory."
- Next in thread: Ken Schaefer: "Re: Problems with #include using a nested virtual directory."
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 24 Jul 2004 14:22:45 +1000
You can use <!-- #include file="" --> rather than <!-- #include
virtual="" --> if you want to use relative paths.
Cheers
Ken
"MarcLancashire" <MarcLancashire@discussions.microsoft.com> wrote in message
news:6E44D534-AF31-42E8-A6C9-29C342DBA895@microsoft.com...
> Cheers Ken,
>
> We sort of figured this out, but it kind of defeats the object in having
nested virtual directories. But the solution we settle on in the end was to
change <!--#include
> > virtual="/Affiliate_Includes/Config.asp"--> to <% Server.Execute
"Affiliate_Includes/Config.asp" %> this works. Unfortunately its time to
get reacquainted with find and replace.
>
> "Ken Schaefer" wrote:
>
> > virtual=
> >
> > means that the path starts from the *root* of the website. So you'd need
to
> > put in:
> >
> > <!-- #include virtual="/affiliates/affiliate_inludes/config.asp" -->
> >
> > (assuming that affliates folder is located directly off the root of the
> > website)
> >
> > Cheers
> > Ken
> >
> > "MarcLancs" <MarcLancs@discussions.microsoft.com> wrote in message
> > news:8C2345A3-9924-48C2-8704-0F9CBAF73C75@microsoft.com...
> > > I am having a problem including files using nested virtual
directories.
> > > I have setup a virtual directory called "Affiliate", in this directory
is
> > an asp page (Offers.asp) that includes a file(<!--#include
> > virtual="/Affiliate_Includes/Config.asp"-->). "Affiliate_Inlcudes" is a
> > virtual directory that is setup within the virtual directory
"Affiliate".
> > However when I call the page "Offers.asp", I get the "Can not find
include
> > file". However when I type in the url it works no problem.
> > > Has any one experienced the problem before or any one know of a
solution?
> >
> >
> >
- Next message: Ken Schaefer: "Re: Problems with #include using a nested virtual directory."
- Previous message: Jonathan Maltz [MS-MVP]: "Re: Running multiple sub webs of one IIS"
- In reply to: MarcLancashire: "Re: Problems with #include using a nested virtual directory."
- Next in thread: Ken Schaefer: "Re: Problems with #include using a nested virtual directory."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|