response.write and datagrid problems

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top