S
Shawn Walsh
All:
I need some help with outputting a string if it exists in the DB in a
datagrid. I need to do the same thing as you would do in ASP this way:
<%
if len(imgname) > 0 then ' image name is present
response.write "<img src='images/" & imgname & "' border=0>"
end if
%>
Obviously this does not work in ASP.NET, but I don't know how to make
this work at all. All I need to do is output an image link if the image
name exists in the DB, otherwise display nothing. I'm thinking I need
to pass what is in my container.dataitem("imagename") to a function??
Your help is much appreciated.
I need some help with outputting a string if it exists in the DB in a
datagrid. I need to do the same thing as you would do in ASP this way:
<%
if len(imgname) > 0 then ' image name is present
response.write "<img src='images/" & imgname & "' border=0>"
end if
%>
Obviously this does not work in ASP.NET, but I don't know how to make
this work at all. All I need to do is output an image link if the image
name exists in the DB, otherwise display nothing. I'm thinking I need
to pass what is in my container.dataitem("imagename") to a function??
Your help is much appreciated.