'you can get an array of files (their path) by using:
fileArray = Directory.GetFiles(yourPath)

'
this example shows how to loop through a directory and show all of the GIF images in  it.

Dim pics as ArrayList = new ArrayList() ' an ArrayList to Bind to a control
Dim myFile as String, code as String '
file and html code strings
Const YOUR_DIRECTORY as String = "/images/" ' constant for your image directory


For Each myFile in Directory.GetFiles(Server.MapPath(YOUR_DIRECTORY), "*.gif")
    image =  YOUR_DIRECTORY & Path.GetFileName(myFile)
    code = "<img src=""" & image & """><br>"
    pics.Add(code) '
add the image to your ArrayList
Next

'Bind the pics to a DataList
dlImages.DataSource = pics
dlImages.DataBind