Yeah, sorry that was me trying to trim down the html for the newsgroup. It
actually looks like this:
<%
If (events.Fields.Item("picURL").Value) <> "" Then
%>
<TD> <div align="center">
<img src="<%=(events.Fields.Item("picURL").Value)%>"
alt="<%=(events.Fields.Item("name").Value)%>" name="pic"
border="1"></div></TD>
<%
End If
%>
Cheers,
GP
"Chris Barber" <ch***@blue-canoe.co.uk.NOSPAM> wrote in message
news:uo**************@tk2msftngp13.phx.gbl...
Syntax was incorrect.(missing dohble-quotes).
<%
If (events.Fields.Item("picURL").Value) <> "" Then
%>
<img src="<%=events.Fields.Item("picURL").Value%>" alt="URL:
<%=events.Fields.Item("picURL").Value%>" name="pic" border="1">
<%
End If
%>
Hold your mouse over the picture to see the url in the tooltip (remove if
not needed).
Chris.
"Gianpiero Colagiacomo" <gp@1lg.com> wrote in message
news:en**************@tk2msftngp13.phx.gbl... vbscript:
Can anyone help me figure out why the image within this IF statement
shows as a place holder rather than the image itself when the statement is
returning true?
If I remove the IF the image shows...
<%
If (events.Fields.Item("picURL").Value) <> "" Then
%>
<img src="<%=(events.Fields.Item("picURL").Value)%>" alt"
name="pic" border="1
<%
End If
%>
Makes no sense to me... All I want is to show an image if there is a
URL available and nothing if not.
Cheers,
GP