View Single Post
Old 03-02-2006, 08:30 AM   #1 (permalink)
orandaWeb
Registered User
 
Join Date: Feb 2006
Posts: 13
Include files in sub directories

The files on my site that sit within a sub directory of the wwwroot folder and reference an include file stored within a directory up from itself e.g.

wwwroot/mysub/file.asp - file that references include

wwwroot/scripts/include.asp - include file

produces this error message:

Active Server Pages error 'ASP 0131'

Disallowed Parent Path

/mysub/file.asp, line 3

The Include file '../scripts/include.asp' cannot contain '..' to indicate the parent directory.


My include code is: <!--#include file="../scripts/include.asp" -->

How do I reference the files?
orandaWeb is offline   Reply With Quote