Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

#include file vs. virtual

Status
Not open for further replies.

bamundsen

IS-IT--Management
Dec 5, 2001
58
US
I have taken over an ASP website on IIS 5 that is very very messy. All files are at the root level, and there are 1000+ files. I would like to sort out the .asp & .htm pages by manufacturer and put them in their own directories. However, when I place a file in a directory the include files do not work and I get this error:

Active Server Pages error 'ASP 0126'

Include file not found

/Test_Folder/myfile.asp, line 2

The include file 'include1.asp' was not found.

I have tried <!-- #include virtual="myfile.asp" --> and I have tried <!-- #include file="../myfile.asp" -->. Any ideas?

Thanks,

Brett
 
What is the name of the actual folder and path the include file is in? And what is the name of the actual folder and path myfile.asp is in?

Lee
 
The include file is in the root directory: /shoppage_header.htm. The myfile.asp page is in the testing folder: /testing/myfile.asp.

Brett
 
That doesn't answer my questions. I was asking for an answer something like:

c:\Test_Folder\myfile.asp

Lee
 
sorry...

include file is in:

d:\dev websites\dev_cta\shoppage_header.htm

myfile.asp is in:

d:\dev websites\dev_cta\testing\myfile.asp
 
I tried this on my computer (XP Pro):

<!-- #include file="../!functions.asp"-->

and it worked fine.

Both times you indicated a path for the include file, you specified a file different from the one in your original example.

In your original example, you SAID you want to include include1.asp, but both of your include examples REFER TO myfile.asp instead.

In your second example, your include file appears to be shoppage_header.htm, and the file you are including this file from is testing.

So, the info you've provided isn't at all consistent, and I'm not sure what you're doing with what, or what you want to do.

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top