Forums
This topic is locked
Default image with Advanced Conditional Region
Posted 07 Mar 2004 14:07:37
1
has voted
07 Mar 2004 14:07:37 Simon Gosling posted:
Can anyone tell me how to display a default image if there is no record in a database field pointing to an existing image file? The text describing the Advanced Conditional Region 2.0 extension suggests this is possible. The page uses ASP Upload to store an image file and a corresponding file name in the database field, Smart Image Processor to create a thumbnail of the image, and the page reloads itself on update to display the thumbnail for approval. I need to display a default image until something has been uploaded. Thanks. Simon G.
Replies
Replied 07 Mar 2004 18:52:34
07 Mar 2004 18:52:34 sander kerstens replied:
hi there,
perhaps this will help you:
<%Dim PicShow3
PicShow3 = Thumbnail("_small",(orders.Fields.Item("fotonaamthumb".Value))
IF PicShow3 <>"" THEN%>
<img src="<%=PicShow3%>">
<%ELSE%>
<img src="picture/no_pic.jpg">
<%End If%>
good luck
greetz Sander
perhaps this will help you:
<%Dim PicShow3
PicShow3 = Thumbnail("_small",(orders.Fields.Item("fotonaamthumb".Value))
IF PicShow3 <>"" THEN%>
<img src="<%=PicShow3%>">
<%ELSE%>
<img src="picture/no_pic.jpg">
<%End If%>
good luck
greetz Sander
Replied 07 Mar 2004 23:53:03
07 Mar 2004 23:53:03 Simon Gosling replied:
Thanks indeed Sander, worked first time.