Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms 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 April 7th, 2005, 11:13 PM
Authorized User
 
Join Date: Feb 2005
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to kumarop
Default include files

Dear all,
d:\iffcoindia is our home directory for one application
d:\iffcoindia\webeis is our home directory for another directory.

I have one function page called function_webeis.asp which is placed in d:\iffcoindia folder.while running webeis application i want to include function_webeis in one of the its page.How to include that file statically or dynamically(absolute or relative path)? i have given following address it is failing, and throwing error path is not correct.How to go above and below the hierarchy folder?






om prakash kumar
__________________
om prakash kumar
 
Old April 8th, 2005, 12:06 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

Please check the following for including files (virtual directory)

http://www.w3schools.com/asp/asp_incfiles.asp

Om Prakash
 
Old April 8th, 2005, 10:20 AM
Authorized User
 
Join Date: Mar 2005
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The problme here is probably that you are trying to use the physical path of the file to include.
Try using this instead:


The "..\" refers to a higher level directory.

 
Old April 8th, 2005, 10:24 AM
Authorized User
 
Join Date: Mar 2005
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just one more point. The solution I have just posted wont work if you have configured the d:\iffcoindia\webeis folder as a seperate virtual directory on your web server. In that case you would have to put a copy of the file you want to include into the 'webeis' folder. Or alternatively, if you only want to have one copy of the file, move it into the 'webeis' folder, and refernce it there from files in your 'iffcoindia' folder.

I hope that made sense...






Similar Threads
Thread Thread Starter Forum Replies Last Post
include files b00gieman Classic ASP Basics 2 September 15th, 2007 10:22 AM
Include files tarang SQL Server 2000 1 July 18th, 2007 03:32 AM
Include files errors ahmedkhadragi C++ Programming 1 December 8th, 2006 08:02 AM
Include Files jmss66 Classic ASP Basics 16 June 9th, 2004 10:20 PM





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