Click here to Skip to main content
15,910,981 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have implemented a shopping cart now i want to show an out of stock image if the respected product is out of stock

please help me to give any suggestion

thanks in advance
Posted

1 solution

Use DataList.ItemDataBound Event[^].

Get the status of product and find the image control. If the status is "Out Of Stock", then change the ImageId.ImageUrl.
 
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