Include statement path

  • Thread starter Thread starter Cracker Jacks
  • Start date Start date
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.
 
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
 
| 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.
 
do you mean the Frontpage include component or standard include file?

<!-- #include file="yourfile.asp"-->
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top