Forums

ASP

This topic is locked

.net, Data Grid Question

Posted 13 Jun 2003 01:07:30
1
has voted
13 Jun 2003 01:07:30 Kelly Brady posted:
I have datagrid and one of the columns from my database lists a file name, for instance - 1234.jpg. 1234.jpg is an image. I want to now display that image in my data grid. I thought by doing the following I was on a role however it does not work. Any help would help

<asp:image ImageUrl="images/client_thumbnails/<%# DataBinder.Eval( Container.DataItem,"FileName" )%>" runat="server"/>

This code is in between my datagrid code:
<aspataGrid>
<Columns>
.........
</Columns>
</aspataGrid>

Reply to this topic