What I am trying to do is load a directory of images using VB.Net code. Here is essentially what I'm trying to do.
I want to display all the thumbnail images in 6 columns and as many rows as necessary. I know the above code won't work but that is what I'm trying to accomplish. I just don't know which objects to use to write out the HTML code.Code:Dim fiArr As FileInfo() = di.GetFiles() ' Display the names of the files. Dim fri As FileInfo For Each fri In fiArr Image1.ImageUrl = imgPath & fri.Name Panel1.Controls.Add("<tr>") Panel1.Controls.Add("<td>" & Panel1.Controls.Add(Image1) & _ Panel1.Controls.Add("</td>") Next fri
Thanks,




Reply With Quote