Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm working for an e-commerce website.. i have product list which are displayed in data list, in that list some of sold products are also displayed. my requirement is to display a image to the product which are sold-out. please help me..
Posted
Comments
OriginalGriff 5-Mar-12 4:52am    
What is the problem?
Even if the stock level is zero, it is not normal to delete the product information.
Anuja Pawar Indore 5-Mar-12 5:34am    
What is the problem you are facing. Share your code

1 solution

XML
<ItemTemplate>
< %#getSoldProductImages(Eval("CategoryId"))%>

</ItemTemplate>


protected string getSoldProductImages(object categoryId)
{
              Find all the soldout product image ref from database

StringBuilder strb=new StringBuilder() ;
      foreach(var img in imagelist)
{
    strb.append("< img src='path\"+img+"'>");
}
return strb.ToString()
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900