Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Old 11-04-2005, 03:48 AM Path problem
Junior Talker

Posts: 1
Trades: 0
In the root of my site I have a site that goes 3 levels deep. Simply because I can group files better. I'm using ASP to connect to databases, and to work the includes. The includes are a 'template' if you like, for the top banner and stuff, and just help me to save time if I'm updating a menu, colour or whatever.
The includes work fine on the first level, but as soon as I go down to the second level the web page says it can't find the includes.

The includes are as a file rather than virtual and are relative to the document. I've tried relative to root and even less success!
It works fine on the local machine, but refuses to work at all on the server.
Does anyone know where I'm going wrong?
boristhemoggy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-04-2005, 12:33 PM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
to go up the folder tree the include has to be virtual and referenced from the root
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-14-2005, 08:42 PM
Bullschmidt's Avatar
Average Talker

Posts: 24
Location: USA
Trades: 0
If on pages in your root you usually do this to include a page:

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

Then on pages one level deep perhaps try this:

<!--#include file="../incl/config.asp"-->
__________________
J. Paul Schmidt

Please login or register to view this content. Registration is FREE
- Freelance Web and Database Developer

Please login or register to view this content. Registration is FREE
- Classic ASP Design Tips
Bullschmidt is offline
Reply With Quote
View Public Profile Visit Bullschmidt's homepage!
 
Reply     « Reply to Path problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.40273 seconds with 12 queries