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 July 30th, 2003, 08:20 AM
Authorized User
 
Join Date: Jun 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default Include Files pointing to corrrect path

I have a menu include file that I am putting on every ASP page in my site. This include contains links to images that are in my images folder at c:mysite\images. I reference the images I using the file path <img src="..\images\test.jpg">. This does not work however as users go deeper within the folders in the site. How can I make it so that I am pointing to the correct folder on every page? If have a virtual directory set up in IIS for the Mysite folder can I use this sytnax:
<img src="\mysite\images\test.jpg">?

Please help?
 
Old July 30th, 2003, 08:37 AM
Registered User
 
Join Date: Jul 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you use a virtual directory you can address the folders releative to the root of the virtual directory as
<img src="/mysite/images/test.jpg">
Please note the use of the forward slashes.






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 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.