Forums

This topic is locked

<img src="">

Posted 26 May 2004 19:35:11
1
has voted
26 May 2004 19:35:11 Nasi Koliandri posted:
Hi!
I want to show some images and I use for example this code:
&lt;img src="tree.bmp"&gt; or &lt;img src="&lt;%=(Recordset1.Fields.Item("ImageName".Value)%&gt;

Now I instead of having the image's name from the recordset, I have the name of the image in a string variable. Lets say that variable imageString holds the name of the image. What should I write in order to display the image?
(does this code &lt;img src="..."&gt; have a format?)

Thanks

Replies

Replied 26 May 2004 20:42:41
26 May 2004 20:42:41 Dave Thomas replied:
well if u use for example:

<pre id=code><font face=courier size=2 id=code><font color=red>
Dim imageString

imageString = Recordset1("ImageName".value
</font id=red></font id=code></pre id=code>

Then to call the image src use
<pre id=code><font face=courier size=2 id=code><font color=red>
&lt;img src="&lt;%= imageString %&gt;"&gt;
</font id=red></font id=code></pre id=code>

Regards,
Dave

[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]
If you like online gaming, please register @ www.nova-multigaming.com

Edited by - UltraDav on 26 May 2004 20:43:29

Reply to this topic