Repeater and Images

B

Brian

I was previously using a GridView control and the first field displayed was
an image. I accomplished this with the following code:

<asp:ImageField
DataImageUrlFormatString="~/PhotoDisplay.ashx?photoid={0}&amp;size=small"
DataImageUrlField="property_key" AlternateText="Property photo.">
<ItemStyle CssClass="col_photo" />
<HeaderStyle CssClass="col_photo" />
</asp:ImageField>

The image is obtained from an IHttpHandler object that I pass in a value to
(property_key)- so it can "retrieve" the image for me. I have recently
switched to a repeater control so I have more choices when it comes to the
layout of the information that is being displayed. I'm not quite sure how
to go about displaying the image now.

Any help would be greatly appreciated.

-Brian
 

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,755
Messages
2,569,537
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top