Using this for the thumbnail on the main page
<%Dim ImgShow ImgShow = rsImage.Fields.Item("Image_thumb").Value IF ImgShow <>"" THEN%> <img src="<%=ImgShow%>"> <%ELSE%> <img src="images/pixel.gif"> <%End If%>
I�m using the same for the big image on the detail page
<%Dim ImgShow ImgShow = rsImage.Fields.Item("Image").Value IF ImgShow <>"" THEN%> <img src="<%=ImgShow%>"> <%ELSE%> <img src="images/pixel.gif"> <%End If%>
In this case i have choosen the Image field as selected DB field name and also Delete if not Upload checkbox.
But since it only set NULL value on Image field the "img src" tag assume that it is an image on the Image_thumb field since there is a Site Path and Name value left there and the IF statement above needs a NULL value.
Klas
|
|
|