hi, I am facing a difficulty in understanding the retrieval of multiple images in this demo (here)
based on the code provided:
1) From where the background-image is taking the images, and what is this path?
2) How can I store Images in the database and assign them to each product accordingly?
Best Regards,
humam.
based on the code provided:
<asp:Repeater runat="server" ID="Repeater1" DataSourceID="SqlDataSource1" OnItemDataBound="repeater1_ItemDataBound">
<ItemTemplate>
<div style="border: 1px solid #999999; float: left; margin: 3px; width: 125px; height: 125px;
background-image: url('<%# Eval("ProductID", "../../../Img/Northwind/Products/{0}.jpg") %>');">
<div runat="server" id="smallImage" style="width: 125px; height: 125px; background-position: center;
background-repeat: no-repeat;">
</div>
</div>
</ItemTemplate>
</asp:Repeater>
1) From where the background-image is taking the images, and what is this path?
2) How can I store Images in the database and assign them to each product accordingly?
Best Regards,
humam.