Dec 06, 2018 08:05 PM|Jessy|LINK
I have a page, where I want to display the images of the products. I do not want to store the images in the database, but in the folder.
Currently I have a problem. Since some of the products have one or two images, and some of the products have more than 2. If the products have less than 5 images, the image folder which do not have 5 image will be displayed as X (no image). How to fix the coding
below? How to declare numberOfProductImages? Thank you!
<ul id="carousel" class="jcarousel jcarousel-skin-tango">
@for (int i = 1; i <= numberOfProductImages; i++)
<li><a href="#" rel="p1"><img src="images/<%=idProduct%>/<%=@i%>.jpg"></a></li>