1: 2: 3: 4: 5:
<asp:DataList ID="dl" runat="server" Visible="true" DataSourceID="SqlDataSource1"> <ItemTemplate> <img border="0" width="75px" alt="image" height="75px" src='C:/T/TestWeb2/TestWeb/Images2/<%# DataBinder.Eval(Container, "DataItem.PictureName")%>' /> </ItemTemplate> </asp:DataList>
Always specify the application relative paths.
Try bewol code:
<asp:Image ID="imgId" runat="server" border="0" width="75px" alt="image" height="75px" ImageUrl='~/Images2/<%# DataBinder.Eval(Container, "DataItem.PictureName")%>' />