Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 15th, 2008, 12:48 AM
Authorized User
 
Join Date: Jan 2008
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default include file not ound

Hi
   I am new to asp 3.0. what problem i am facing is that when i include a file in my .asp file and run the page, it gives this error message "The include file '/includes/common.asp' was not found."
    now my current web directory is website1 and file which is using common is default.asp located in website1 directory and common.asp is located in "website1/includes".
    can any one let me know what i am missing because this is the problem with a lot of other pages as well.
Regards
   Shahid

 
Old January 15th, 2008, 01:00 AM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

This tells me your path is incorrect. What is your stntax for the include? From what you have told me it should look like:



Wind is your friend
Matt
www.elitemarquees.com.au
 
Old January 15th, 2008, 02:21 AM
Authorized User
 
Join Date: Jan 2008
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No i am using virtual path instead

"#include virtual="/includes/common.asp"

this is my include code in default.asp

 
Old January 15th, 2008, 08:48 AM
Authorized User
 
Join Date: Jan 2008
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi
   After a long search, i have got the solution to the problem. The problem is that when we use #include virtual="includes" then the directory we are reffering to should also be a virtual directory.
    That's what i did, set the includes as virtual directory and its working now.


 
Old January 15th, 2008, 06:17 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Very good. Is this working?

"#include virtual="/includes/common.asp"

for others who may want help with the same problem, shouldnt the syntax be?



Wind is your friend
Matt
www.elitemarquees.com.au
 
Old January 15th, 2008, 11:34 PM
Authorized User
 
Join Date: Jan 2008
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes mat. the actual syntax will be



 and in this case includes will be a virtual directory as well.

 
Old January 16th, 2008, 12:39 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Off topic.

Matt I want one of those Marquees, I am not sure what I would use it for but damn those are cool. =] Nice site btw.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor :.
Wrox Books 24 x 7
================================================== =========
 
Old January 16th, 2008, 01:02 AM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Doug

Thanking you! This is myn and my partners new venture. I plan to cut back on coding and concentrate on it full time ASAP, the sites only been live for a few weeks. I have implimented as much SEO as I know and are educating myself on the latest tips n tricks. Aware of the fact you are one of the 'super members' here at Wrox, do you have any quality links to share?

Thanks again for the product and site comments - A good day to you...

Wind is your friend
Matt
www.elitemarquees.com.au
 
Old January 17th, 2008, 12:06 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Thanks for your kind words although I don't consider myself super by any regard. =]

Unfortunately my work with Wrox and at my Full Time employer doesn't leave much time for any side projects (let alone a personal site) but if you are curious to see the latest sites that I have worked on you can check these out:

www.summitmetroparks.org
This is my current project. The site is running on top of the Kentico CMS.

http://wilson.house.gov/
My project from over the summer.

http://www.ofheo.gov/
A project that I was an ancillary resource on over the summer.

Good luck to you and your partner in your venture! =]

-Doug

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor :.
Wrox Books 24 x 7
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
Include file morpheus BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 April 23rd, 2006 08:20 AM
difference between include file & include virtual crmpicco Classic ASP Basics 2 January 23rd, 2006 11:50 AM
Include File morpheus Beginning PHP 8 January 17th, 2006 09:30 AM
Include file within aspx jieli1001 ASP.NET 1.0 and 1.1 Professional 2 July 29th, 2003 04:32 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.