Sometimes, with a Datalist, it would be nice to actually display an image as one of the Data items. This sample uses a simple Access DataSource ID to do so
<asp:AccessDataSource ID="AccDS1" Runat="Server" SelectCommand = "SELECT id, ProdName, ImgPath, Comments From Products" DataFile="\YourPath\products.mdb"> </asp:AccessDataSource> <asp:DataList id="MyDataList" Runat="Server" DataSourceID="accDS1"> <HeaderTemplate> <table border="1"> </HeaderTemplate> <ItemTemplate> <tr> <td colspan="2"> <font color="#000000"> <b>ProdName : </b> <%# Container.DataItem("ProdName")%> </td> </tr> <tr> <td align="Left" valign="Top"> <b>Comments: </b> <br> <%# Container.DataItem("Comments")%></td> <td align="Left" valign="Top"> <asp:Image Runat="server" ID="myImage" ImageUrl=''<%# Container.DataItem("ImgPath")%>''> </asp:Image> </td> </tr> </ItemTemplate> <FooterTemplate> </table> </FooterTemplate> </asp:DataList>