help with code in displaying images


V

vncntj

I'm trying to display an image that is stored in a sql server db.


<asp:Repeater ID="RepeaterControl" runat=server
DataSourceID="SqlDataSource1">

<HeaderTemplate>
<table border=1>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td><asp:Image id=Image1 runat="server" ImageUrl='<
%Response.BinaryWrite((byte[]) #DataBinder.Eval(Container.DataItem,
"Blob_Segment") %>' />
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>

But I just get broken links...
:(

thanks
me
 
Ad

Advertisements


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

Top