to create a gallery in asp.net by iterating through the folders <p>I want to create a gallery in asp.net the way it should work is as follows:</p> <ul> <li>iterate through gallery folder</li> <li>select all the folder and show them as albums with cover pic as thumbnail.jpg in that folder</li> <li>when clicked on the album it should display the content of the folder (images).</li> </ul> <p>My approach for creating this was to iterate through the folders and make views and link button based on that for albums and to display the content of album in that view as images using repeater control, but that didn't work out as it had many errors while implementing it. and I had to write the whole thing in on_init() function because of dynamic views.I can implement the html and js part (like for light box and other visual stuffs). Please suggest some better approach maybe with some code example. Please use c# . Thanks</p>