I want to create a gallery in asp.net the way it should work is as follows:
- iterate through gallery folder
- select all the folder and show them as albums with cover pic as thumbnail.jpg in that folder
- when clicked on the album it should display the content of the folder (images).
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
I can not just write you all the code… but ill give you a startup code:
This will print you on your web page(actualy in that Label_showdata) all the files and the directory where they are.
Basically from here you will need to wrap that data into a table and bind it in whatever control you feel comfortable with… Is not that hard actually… but it takes a bit more time to write exactly all the code (time that unfortunatlly i do not have at the moment…)