Include statement path

C

Cracker Jacks

I am having trouble pointing an ASP file to another ASP for use in the
include statement. I do not understand all the different paths that the
server or the scripts use. Could someone please explain the proper syntax
for this or point me in the right direction? Thanks.

say the file i want to include is here:

iwww.thisisit.com/subweb/scripts/this.asp

and from a file in the root folder of the sub web I want to put an include
statement in it that points to the included file. I also need to know the
return path.
 
B

Bob Lehmann

If by "root folder of the sub web" you mean the folder named "subweb" ...
<!-- #include file="scripts/this.asp" -->

What do you mean by "return path"?

Why are you posting this to a javascript group?

Bob Lehmann
 
J

Jeff North

| I am having trouble pointing an ASP file to another ASP for use in the
| include statement. I do not understand all the different paths that the
| server or the scripts use. Could someone please explain the proper syntax
| for this or point me in the right direction? Thanks.
|
| say the file i want to include is here:
|
| iwww.thisisit.com/subweb/scripts/this.asp
|
| and from a file in the root folder of the sub web I want to put an include
| statement in it that points to the included file. I also need to know the
| return path.

To access a file from the root folder use scripts/this.asp
From any other folder use ../scripts/this.asp
From a nested folder use ../../scripts/this.asp

the ../ tells the server to go back one folder/directory to find the
folder you are requesting.
 
A

Andrew Murray

do you mean the Frontpage include component or standard include file?

<!-- #include file="yourfile.asp"-->
 
C

Cracker Jacks

Thanks thats helps. I understand it now.

Jeff North said:
To access a file from the root folder use scripts/this.asp
From any other folder use ../scripts/this.asp
From a nested folder use ../../scripts/this.asp

the ../ tells the server to go back one folder/directory to find the
folder you are requesting.
 
Top