Devendra  Kumar

Devendra Kumar

  • NA
  • 517
  • 233.6k

how to get image from image folder in c# .net

Aug 16 2016 3:02 AM
hello;
how to get image from image folder:
 
i use data list in which bind product  with image and i want which product checked
 
there image will be get :
 
 
 
 
<asp:DataList ID="divProducts" runat="server" OnItemDataBound="dl_ItemDataBound">
<ItemTemplate>
<table id="tblContacts">
<tr>
<td>
<asp:Label ID="lbl_product_id" runat="server" Visible="false" Text='<%#Eval("ProductId") %>'></asp:Label>
<img src='ProductShop/<%#Eval("Image1") %>' alt="image1" />
<asp:CheckBox OnCheckedChanged="OnCheckedChanged" AutoPostBack="true" ID="chkbox" runat="server"  />
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
 

Answers (14)