ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old September 15th, 2009, 05:26 PM
mpoker84 mpoker84 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2009
Posts: 5 mpoker84 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 39 m 35 sec
Reputation Power: 0
ASP Include issue

Ive just finished on a site that seemed to work fine when testing locally.
However, when uploading to my hosting (123-reg - the plus package that "supports asp"), none of my includes work.

Is this a common problem? I've searched around for a few hours trying to find a solution but to no avail.

The includes are for the nav bar (header) and a footer.

The code for the include is as follows:
<!-- #include file="includes/general_header.asp" -->

Please help!!

thanks, Mark

Reply With Quote
  #2  
Old September 15th, 2009, 06:31 PM
mehere's Avatar
mehere mehere is offline
Senior Sarcasm Wizardess
ASP Free God 17th Plane (13000 - 13499 posts)
 
Join Date: Feb 2005
Location: Dreamland
Posts: 13,237 mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)  Folding Points: 10976 Folding Title: Novice Folder
Time spent in forums: 5 Months 1 Day 20 h
Reputation Power: 2012
-->thread moved to ASP Development

try using virtual. there's a setting in IIS that would need to be changed to allow include file, i can't remember what it is off of the top of my head.
Code:
<!-- #include virtual="/includes/general_header.asp" -->
__________________
Come JOIN the party!!!

Quote of the Month:
Pretension: The downside of being better than everyone else is that people tend to assume you're pretentious.

Questions to Ponder:
You can be overwhelmed and underwhelmed, but why can't you be simply whelmed?

iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm")
copyright© 2008 sbenj69

Reply With Quote
  #3  
Old September 15th, 2009, 06:44 PM
mpoker84 mpoker84 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2009
Posts: 5 mpoker84 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 39 m 35 sec
Reputation Power: 0
Quote:
Originally Posted by mehere
-->thread moved to ASP Development

try using virtual. there's a setting in IIS that would need to be changed to allow include file, i can't remember what it is off of the top of my head.
Code:
<!-- #include virtual="/includes/general_header.asp" -->


Hi Thanks for the suggestions,

When trying to use 'virtual' i recieve an error when testing locally suggesting the file cannot be found, and when hosting, the same issue occurs...no includes!?

Reply With Quote
  #4  
Old September 15th, 2009, 08:40 PM
mehere's Avatar
mehere mehere is offline
Senior Sarcasm Wizardess
ASP Free God 17th Plane (13000 - 13499 posts)
 
Join Date: Feb 2005
Location: Dreamland
Posts: 13,237 mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)  Folding Points: 10976 Folding Title: Novice Folder
Time spent in forums: 5 Months 1 Day 20 h
Reputation Power: 2012
what is your directory structure? have a look at this link and determine how the include should be. virtual is based off of root directory.

have a look at this as well. look for Accepted Solution and see what he has to say.

Reply With Quote
  #5  
Old September 15th, 2009, 09:11 PM
bigmike1212's Avatar
bigmike1212 bigmike1212 is offline
Option Explicit, baby.
ASP Free Novice (500 - 999 posts)
 
Join Date: Jan 2009
Location: Neighborhood of Make-Believe
Posts: 554 bigmike1212 User rank is First Lieutenant (10000 - 20000 Reputation Level)bigmike1212 User rank is First Lieutenant (10000 - 20000 Reputation Level)bigmike1212 User rank is First Lieutenant (10000 - 20000 Reputation Level)bigmike1212 User rank is First Lieutenant (10000 - 20000 Reputation Level)bigmike1212 User rank is First Lieutenant (10000 - 20000 Reputation Level)bigmike1212 User rank is First Lieutenant (10000 - 20000 Reputation Level)bigmike1212 User rank is First Lieutenant (10000 - 20000 Reputation Level)bigmike1212 User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 17 h 46 m 54 sec
Reputation Power: 146
Just for fun, see if it supports an include of txt file. If it will do that and not an asp file, maybe that would be a clue.

Reply With Quote
  #6  
Old September 16th, 2009, 03:28 AM
Jonathan8146 Jonathan8146 is offline
Contributing User
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Mar 2005
Posts: 1,708 Jonathan8146 User rank is First Lieutenant (10000 - 20000 Reputation Level)Jonathan8146 User rank is First Lieutenant (10000 - 20000 Reputation Level)Jonathan8146 User rank is First Lieutenant (10000 - 20000 Reputation Level)Jonathan8146 User rank is First Lieutenant (10000 - 20000 Reputation Level)Jonathan8146 User rank is First Lieutenant (10000 - 20000 Reputation Level)Jonathan8146 User rank is First Lieutenant (10000 - 20000 Reputation Level)Jonathan8146 User rank is First Lieutenant (10000 - 20000 Reputation Level)Jonathan8146 User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 3 h 50 m 45 sec
Reputation Power: 177
Also, if you have many "sites" being developed on your PC then this might be useful for you, XP Pro IIS Admin

Reply With Quote
  #7  
Old September 16th, 2009, 04:25 AM
mpoker84 mpoker84 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2009
Posts: 5 mpoker84 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 39 m 35 sec
Reputation Power: 0
Hi All, thanks for the replys

Jonathan8146 - Im only developing the one site at the moment so most likely wont require this?

bigmike1212 - I've just tried an include on a txt file with both the 'virtual' and 'file' commands but to no avail?

mehere - directory is as follows:

Site - JDC
---General
-------Images
-------Includes
------------Footer.asp
------------Header.asp
-------about_jdc.asp
-------cdsys.asp
-------contact_jdc.asp
-------datetimepicker.js
-------default.asp
-------jdc.css
---Images
---drc_intro.css
---index.htm

any help is hughly apprectiated.

If you wish to view the source please let me know, i dont want to post a link and break the rules as a new user!

thanks again, mark

Reply With Quote
  #8  
Old September 16th, 2009, 04:52 AM
Jonathan8146 Jonathan8146 is offline
Contributing User
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Mar 2005
Posts: 1,708 Jonathan8146 User rank is First Lieutenant (10000 - 20000 Reputation Level)Jonathan8146 User rank is First Lieutenant (10000 - 20000 Reputation Level)Jonathan8146 User rank is First Lieutenant (10000 - 20000 Reputation Level)Jonathan8146 User rank is First Lieutenant (10000 - 20000 Reputation Level)Jonathan8146 User rank is First Lieutenant (10000 - 20000 Reputation Level)Jonathan8146 User rank is First Lieutenant (10000 - 20000 Reputation Level)Jonathan8146 User rank is First Lieutenant (10000 - 20000 Reputation Level)Jonathan8146 User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 3 h 50 m 45 sec
Reputation Power: 177
Quote:
Originally Posted by mpoker84
Hi All, thanks for the replys

Jonathan8146 - Im only developing the one site at the moment so most likely wont require this?

bigmike1212 - I've just tried an include on a txt file with both the 'virtual' and 'file' commands but to no avail?

mehere - directory is as follows:

Site - JDC
---General
-------Images
-------Includes
------------Footer.asp
------------Header.asp
-------about_jdc.asp
-------cdsys.asp
-------contact_jdc.asp
-------datetimepicker.js
-------default.asp
-------jdc.css
---Images
---drc_intro.css
---index.htm

any help is hughly apprectiated.

If you wish to view the source please let me know, i dont want to post a link and break the rules as a new user!

thanks again, mark


It could be that the server is case sensitive, you have indicated that the folder is called "Includes" but that the include statement uses "includes".

Reply With Quote
  #9  
Old September 16th, 2009, 05:01 AM
mpoker84 mpoker84 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2009
Posts: 5 mpoker84 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 39 m 35 sec
Reputation Power: 0
HI,

I've just checked the case, and they both match, the directory list above was manually typed by me.

I like you thinking though?!

Reply With Quote
  #10  
Old September 16th, 2009, 05:11 AM
Jonathan8146 Jonathan8146 is offline
Contributing User
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Mar 2005
Posts: 1,708 Jonathan8146 User rank is First Lieutenant (10000 - 20000 Reputation Level)Jonathan8146 User rank is First Lieutenant (10000 - 20000 Reputation Level)Jonathan8146 User rank is First Lieutenant (10000 - 20000 Reputation Level)Jonathan8146 User rank is First Lieutenant (10000 - 20000 Reputation Level)Jonathan8146 User rank is First Lieutenant (10000 - 20000 Reputation Level)Jonathan8146 User rank is First Lieutenant (10000 - 20000 Reputation Level)Jonathan8146 User rank is First Lieutenant (10000 - 20000 Reputation Level)Jonathan8146 User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 3 h 50 m 45 sec
Reputation Power: 177
Quote:
Originally Posted by mpoker84
HI,

I've just checked the case, and they both match, the directory list above was manually typed by me.

I like you thinking though?!


What is the exact code you are trying to use, and in which file, as the code you provided doesn't match the directory/file layout that you gave?

Reply With Quote
  #11  
Old September 16th, 2009, 08:26 AM
steve Strong steve Strong is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2009
Posts: 3 steve Strong User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 50 m 47 sec
Reputation Power: 0
File Include issue in ASP

Hi Buddy
it is very simple
if you are inside any of the folder like images folder
then call like this
<!-- #include file="../includes/general_header.asp" -->

or if you are outside the folder the means in the root directory
then call like this
<!-- #include file="/includes/general_header.asp" -->


i think this will solve the problem

Reply With Quote
  #12  
Old September 16th, 2009, 08:47 AM
mehere's Avatar
mehere mehere is offline
Senior Sarcasm Wizardess
ASP Free God 17th Plane (13000 - 13499 posts)
 
Join Date: Feb 2005
Location: Dreamland
Posts: 13,237 mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)  Folding Points: 10976 Folding Title: Novice Folder
Time spent in forums: 5 Months 1 Day 20 h
Reputation Power: 2012
based on your directory structure ... try something like this
Code:
<!-- #include virtual="/general/includes/header.asp" -->

Reply With Quote
  #13  
Old September 16th, 2009, 11:07 AM
mpoker84 mpoker84 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2009
Posts: 5 mpoker84 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 39 m 35 sec
Reputation Power: 0
Hi All,

Thanks for you help and support...

Turns out the code was fine, (always have faith!)

More embarassingly, it turned out to be the hosting! When i signed up i chose a windows server, but somehow ended up on linux! hence my issues!

Thanks again for all you help and suggestions!

Mark

Reply With Quote
  #14  
Old September 16th, 2009, 10:28 PM
mehere's Avatar
mehere mehere is offline
Senior Sarcasm Wizardess
ASP Free God 17th Plane (13000 - 13499 posts)
 
Join Date: Feb 2005
Location: Dreamland
Posts: 13,237 mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)  Folding Points: 10976 Folding Title: Novice Folder
Time spent in forums: 5 Months 1 Day 20 h
Reputation Power: 2012
glad you've got it sorted ...

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > ASP Include issue


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek