Forums

This topic is locked

out of stock image

Posted 10 Apr 2003 01:45:33
1
has voted
10 Apr 2003 01:45:33 Marco Hippa posted:
Hi, I want to show an out of stock image in a repeat region when the item is checked in a tablefield (Access 2000). Any ideas how to do this in ASP VBscript?
The images aren't stored in the database but are referred to.

Thanks

Replies

Replied 10 Apr 2003 13:21:23
10 Apr 2003 13:21:23 Stefan P replied:
Use an if... then statement around the image path code. For example


<%
If (rsRecordset.Fields.Item("tablefield".Value) = "YES" Then
%>
<img src="path">
<%
End If
%>

Regards

Stefan

DMX | ASP | VBScript | ACCESS | IIS5

Edited by - sesame on 10 Apr 2003 13:21:51

Edited by - sesame on 10 Apr 2003 13:22:39

Reply to this topic