I am trying to write an application that allows a user to click a button to see images as thumbnails from a folder in a modal popup. Inside of my modal popup I have a datalist. But from there I don't know where to go. I've already tried the 4guysfromrolla solution but it wasn't what I was looking for. How can I set up images as thumbnails? I already have the following....
Dim files As String() = Directory.GetFiles(Server.MapPath("~/Folder1/Folder2/"), "*.jpg")
For Each File As String In files
File = File.Substring(File.LastIndexOf("/") + 1, File.Length)
'Response.Write(File & "<br>")
File = File & "~/Folder1/Folder2/"
Dim image As Image = New Image()
image.ImageUrl = File
image.Height = 50
image.Width = 50
Me.Controls.Add(image)
Next
Edited:New Question
I want to change the size of the images in javascript onmouseover.
image.Attributes.add("onmouseover","change size here")
Panel2.controls.add(image)
Is it possible to do this here?