Forum Moderators: open

Message Too Old, No Replies

Error with "include" file not in same directory

How to reference an "include" in the parent dir?

         

sinclasc

9:03 pm on Nov 27, 2005 (gmt 0)

10+ Year Member



Hi,
Currently all my files are in the root dir, and it works fine, but...At the top of one of my asp pages (in a sub directory) I am getting the following error:
Active Server Pages error 'ASP 0130'

Invalid File attribute

/test/test.asp, line 1

File attribute '/template.asp' cannot start with forward slash or back slash.

How to reference this file?

pageoneresults

11:47 pm on Nov 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Use a virtual include file reference...

<!-- #include virtual="/template.asp" -->

sinclasc

1:40 pm on Nov 28, 2005 (gmt 0)

10+ Year Member



Ok, works, kind of.
Now I'm getting script error;
Microsoft VBScript runtime error '800a000d'

Type mismatch: 'GetDetail(...)'

This appears to be in forming the "Home/Widgets/Blue Widgets/" menu at the top, doesn't seem to know how to form from seperate dirs...