If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Include file

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-11-05, 11:02
tigga12 tigga12 is offline
Registered User
 
Join Date: Nov 2005
Posts: 4
Include file

How can I include a file that is one folder up from the file that wishes to use it? Thx.
Reply With Quote
  #2 (permalink)  
Old 11-11-05, 11:03
tigga12 tigga12 is offline
Registered User
 
Join Date: Nov 2005
Posts: 4
Question

[QUOTE=tigga12]How can I include a file that is one folder up from the file that wishes to use it? Thx.
Reply With Quote
  #3 (permalink)  
Old 11-11-05, 11:04
tigga12 tigga12 is offline
Registered User
 
Join Date: Nov 2005
Posts: 4
Question includes

How can I include a file that is one folder up from the file that wishes to use it? Thx.
Reply With Quote
  #4 (permalink)  
Old 11-11-05, 11:16
fredservillon fredservillon is offline
Registered User
 
Join Date: Oct 2005
Posts: 178
Quote:
Originally Posted by tigga12
How can I include a file that is one folder up from the file that wishes to use it? Thx.
Generally in your current running application directory level you use ./thisfile.xxx and to go back up level you add another dot like ../anotherfile.xxx and so forth or use the complete path is safer like //server/higherDirectory/CurrentDirectory/thisfile.xxx. to go up one level //server/higherDirectory/anotherfile.xxx

Last edited by fredservillon; 11-11-05 at 16:28.
Reply With Quote
  #5 (permalink)  
Old 11-12-05, 16:53
MrWizard MrWizard is offline
Registered User
 
Join Date: Mar 2003
Location: Atlanta, GA
Posts: 191
<!--#INCLUDE FILE="../filename.asp"-->
__________________
Tim
Reply With Quote
  #6 (permalink)  
Old 11-13-05, 17:00
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
Depending on how the site is set up you might need to enable access to parent paths in IIS.
Reply With Quote
  #7 (permalink)  
Old 11-29-05, 15:14
pramsey pramsey is offline
Registered User
 
Join Date: Nov 2005
Posts: 20
Quote:
<!--#INCLUDE FILE="../filename.asp"-->
Sometimes my includes will not work with "FILE", so I have to use "VIRTUAL" instead. So, your include will look like this:

Code:
<!--#INCLUDE VIRTUAL="/filename.asp"-->
__________________
Programming/Web Design
http://eofficeprofessionals.com/forums

Offer solutions-not criticism.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On