Forums

This topic is locked

ASP & Library Items in Dreamweaver MX

Posted 14 Feb 2003 19:38:50
1
has voted
14 Feb 2003 19:38:50 Keith Gibbons posted:
I'm having a problem displaying images inserted into library items in my Dreamweaver MX applications -- but I'm trying to do something a little out of the ordinary, so here's the deal:

1. I've created a library item to be included within a dreamweaver template. Inside that library item I've placed two images.

One of the images has a standard source URL of the type:

img src="../images/logo.gif"

But the other image uses ASP in the source URL to determine the file name, like this:

img src="../images/{%=imgName%}

(And in the template, I define the variable "imgName" which provides the URL with the proper file name)

2. When I create a new document based on the template (containing the library item), and then save that new document -- both images display correctly. However, upon closer inspection of the code in the saved file, it seems that Dreamweaver MX is not formatting the URL's of the two images correctly.

For the standard (non-ASP) image, MX is correctly inserting the URL as follows:

img src="../images/logo.gif"

BUT, for the ASP image, MX is leaving the URL as follows:

img src="file:///C|/Development/images/{%=imgNamel%}

This works fine on my development system, but of course when I transfer it to production, it can't find the second image.

My question: How can I force Dreamweaver MX to recognize my ASP image in the same manner as the non-ASP image -- so that their HTML image source path ends up being identical?

I hope I've explained myself clearly. Thanks for any help you can provide!

Keith.

Reply to this topic