vb.net, asp.net show each image in folder as thumbnail in page

Hi All,

I have been asked to build a website for a photographer which I can do, but I would like to make my job a little easier in the future by having the images display as thumbnails automatically on page load but am not 100% on how to do it.

I realise I need to do a for each file, but dont know how I would have my aspx page display them.

Any and all help will be very much appreciated.
SimonPrice33Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kiran SonawaneProject LeadCommented:
0
Kiran SonawaneProject LeadCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SimonPrice33Author Commented:
Hi Sonawanekiran,

This is brilliant thanks, an issue that im facing with this is that the images dont display in the thumbnail.

Any suggestions?
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Kiran SonawaneProject LeadCommented:
Have you used GenerateThumbnails method? where you need to provide scale factor
0
SimonPrice33Author Commented:
erm... im going to say no... becausae i dont know how to complete this.
0
SimonPrice33Author Commented:
ah ha... got it... missed a ~\images\ {0} that needed changing to the name of my directory....

I just need to figure out now how to get more than 5 image to show.
0
Kiran SonawaneProject LeadCommented:
Change repeatcolumn property to 5 in aspx page
RepeatColumns="5"
0
Kiran SonawaneProject LeadCommented:
Sorry above comment was if you want to show 5 images in a row. What exactly you want?
0
Kiran SonawaneProject LeadCommented:
Code in link shows all images in directory with 3 images in a row
0
SimonPrice33Author Commented:
What im looking for is to show all files within a directory, this could be up to 150 photographs, and would need them to wrap around the page rather than just go in one line.
0
SimonPrice33Author Commented:
increaseing the 5 to a higher number does not increase the number of images show
0
SimonPrice33Author Commented:
Sorted, need to add further extensions in but all good now :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.