Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: How do you reference another subfolder in the same root?


Message #1 by "Jose" <jbueno@i...> on Mon, 11 Nov 2002 15:35:56
Hi all -

A pretty basic question today.  I've been wanting to segment portions of 
my application but have run into a problem.  All of my include files are 
stored in a subfolder off the root, and for the most part its fine as I 
can just have <!-- #include file="modules/modMisc.vbs" --> in the head 
section of any page in the root.  The problem I'm having is that I want to 
segment off another portion of the application into a subfolder off the 
root, but I can't reference the includes in the modules subfolder.  I've 
tried using UNC and even absolute paths along with ../, ./ and / 
preceeding the folder name, but I can't quite get it right.  Any 
suggestions other than moving the includes to the root?

Thanks,

-Jose
Message #2 by "Chris Thompson" <cthompson@n...> on Mon, 11 Nov 2002 09:22:56 -0700
Put a slash in front to designate root.

Doing this with your current line will cause an error.

Change it from:

<!-- #include file=3D"modules/modMisc.vbs" -->

to:

<!-- #include virtual=3D"/modules/modMisc.vbs" -->

assuming that modules is a sub folder right off your root.

Thanks,

Chris Thompson

-+-+-+-+-+-+-+-+-+-+-+-
cthompson@n...
xxx-xxx-xxxx
-+-+-+-+-+-+-+-+-+-+-+-



-----Original Message-----
From: Jose [mailto:jbueno@i...]
Sent: Monday, November 11, 2002 8:36 AM
To: ASP Web HowTo
Subject: [asp_web_howto] How do you reference another subfolder in the
same root?

Hi all -

A pretty basic question today.  I've been wanting to segment portions of

my application but have run into a problem.  All of my include files are

stored in a subfolder off the root, and for the most part its fine as I
can just have <!-- #include file=3D"modules/modMisc.vbs" --> in the head 

section of any page in the root.  The problem I'm having is that I want
to
segment off another portion of the application into a subfolder off the
root, but I can't reference the includes in the modules subfolder.  I've

tried using UNC and even absolute paths along with ../, ./ and /
preceeding the folder name, but I can't quite get it right.  Any
suggestions other than moving the includes to the root?

Thanks,

-Jose
Message #3 by "Jose" <jbueno@i...> on Mon, 11 Nov 2002 18:39:14
Sorry - should have been more clear. I have attempted to use that method 
as it made sense, but it doesn't work. 

Error Type:
Active Server Pages, ASP 0130 (0x80004005)
File attribute '/modules/modMisc.vbs' cannot start with forward slash or 
back slash.
/sandbox/test.asp, line 30
Message #4 by "Jose" <jbueno@i...> on Mon, 11 Nov 2002 18:40:50
dOh!  Didn't see the virtual switch

  Return to Index