another solution

October 3, 2001 by Boris Boy

I use an extension from the robgt, so you dont get a broken image.

 <%
' *** Show Image If Available
' *** RobGT Server Behaviour 107 - By RobGT - www.robgt.com ***
IF (Recordset1.Fields.Item("news_pic").Value) <> "" Then%>
            <img src = "<%=(Recordset1.Fields.Item("news_pic").Value)%>">
            <% End IF %>

 

where i must put this code?

November 29, 2002 by Giancarlo Barba

where i must put tis code? i have same problem, upload is optional, but if no have a image or file insert or update behavior not work

hi

Image does not show up

May 6, 2003 by Rooster C
When I used this code, I could not get the image to show when there was an image uploaded. Any ideas?

RE: another solution

May 6, 2003 by Rooster C

I must be doing somethin terribly wrong. I have a page that I created in ASP. Its a detail page that has 3 images with recordsets. Now when I view the page normally, it views fine. When I have no image uploaded, it displays the empty image box. No when I tried to apply the Server Behvior #107 that you used above, I get 3 more image boxs. So Tried the other method the if else one way above, and what happens is it works fine, except when an image should be displyed I get a  broken image.  The url to the image is missing.

http://www.website/image/?

What the hell am I doing wrong. I tried using dreamweavers show if not empty but that didnt do anything either.

my email is rdcano@attbi.com

Thanks