I’m trying to create a Image Dynamically. I got the Link to the Image.
necessary code:
foreach (String pictureLink in imageLinks)
{
Image image = new Image();
image.ImageUrl = pictureLink;
imagesDiv.Controls.Add(image);
}
But nothing is happens.. How can I do that or what I’m doing wrong?
The Style, of how the pictures should be showed is Googleimagesearch result like..
EDIT:
There is one more thing I would do.. When adding the Placeholders (with the Image), they are showed after all Images where been loaded, but is it possible to add the placeholder with the image, right after it has been added?
take a look at this
Adding asp.net image to div
I think it should answer your questions.