Posted on: 11/3/2014 6:42:06 PM | Views : 362

I have a list of images returning from a webapi, I need to display the images individually in a div (one div per image);  I am able to use a foreach loop and display all of the images in a single div;
<div> @foreach (var item in Model) { <img src="@item.GetCarouselImages(new List<WebCarousel>(), 0)" alt="@item.Link" title="@item.LinkDescription" />  tried this line
} </div>
<img src="@item.GetCarouselImages()" alt="@item.Link" title="@item.LinkDescription" /> this is the code 

Thanks,
The function GetCarouselImages is in a model class

Go to the complete details ...