Click to See Complete Forum and Search --> : How would I make a photogallery?
Comn8u
Aug 18th, 2004, 10:21 PM
Would I store the links of pictures in the database or the actual image?
How would I be able to display 25 pictures per page? Would I use a repeater or dataset?
Fishcake
Aug 19th, 2004, 03:11 AM
There's really no right or wrong answer to questions like these, it's a matter of preference.
You'll just have to consider the alternatives and see which works best for you.
Eg. Whilst storing just links in a db and having the images in a driectory might be easier to code, storing the images directly in the db would probably be easier to maintain the db.
mendhak
Aug 19th, 2004, 06:20 AM
I always suggest storing the URL to the image instead of the whole file itself.
Comn8u
Aug 19th, 2004, 06:25 AM
How would I go about displaying the pictures once they are in the database. I would like to put 25 pictures per page and use paging for the other pages. Would it be possible to store links in the database and then display them in a dataset and then add the <a> tag to each picture?
mendhak
Aug 19th, 2004, 06:35 AM
Originally posted by Comn8u
Would it be possible to store links in the database and then display them in a dataset and then add the <a> tag to each picture?
Yes. They'll be values inside some field in the dataset.
Then you can place the URL (probably with a little modification) inside an <a> tag, InnerHTML probably.
mendhak
Aug 19th, 2004, 06:36 AM
And to DISPLAY the image, you can use the <img> tag (runat server) and place the value there.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.