• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 433
  • Last Modified:

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.
0
SimonPrice33
Asked:
SimonPrice33
  • 6
  • 6
1 Solution
 
sonawanekiranCommented:
0
 
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
sonawanekiranCommented:
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
 
sonawanekiranCommented:
Change repeatcolumn property to 5 in aspx page
RepeatColumns="5"
0
 
sonawanekiranCommented:
Sorry above comment was if you want to show 5 images in a row. What exactly you want?
0
 
sonawanekiranCommented:
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 6
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now