www.webdeveloper.com
Results 1 to 4 of 4

Thread: How would I create a photo gallery?

  1. #1
    Join Date
    Jul 2004
    Posts
    61

    How would I create a photo gallery?

    I'm trying to put a photogallery for my site and would like to make add picture uploads to my admin section. How would I go about storing the pictures in the database? Would I store just the link or the whole image?

    Also, how would I be able to display, say, 25 pictures per page? Would I use a dataset or repeater, or what?

  2. #2
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222
    You would use both a dataset and a repeater. The repeater displays daya from the set. You use the sql select statement to select 25 records from the db. Personally I would not put the images in the db. I would store the url in the db, and when the pic is uploaded use the system.drawing to create a smaller version of it with the same name and extention but a t in it for thumb.

  3. #3
    Join Date
    Jul 2004
    Posts
    61
    I'm having a hard time trying to figure out how to use a reapeater with a dataset. Where would you put the repeater in code? Would it be within the dataset; around the bound columns? I'm just probably confused or missing something.

  4. #4
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222
    A repeater is not a data gird. There are no bound columns, there are not columns at all really. The data set is not a physical table, its like a big array with several categories. You can use a repeater just like a data grid.
    http://www.asp101.com/articles/john/...er/default.asp

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles