<asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1"> <ItemTemplate> <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("ImageID", "ImageHandler.ashx?imgId={0}") %>' /> <br /> <asp:Label ID="Label1" runat="server" Text='<%# Eval("Data") %>'></asp:Label> </ItemTemplate> </asp:DataList>
SELECT image, field1, field2,... FROM table
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)