Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 2nd, 2007, 02:13 PM
Registered User
 
Join Date: Sep 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to add 5 more photos

How could I add 5 more photos to each original photo and see those pictures after click it?

i.e:

      Photo1
      --Photo1.1
      --Photo1.2
      --Photo1.3
      --Photo1.4
      --Photo1.5

      Photo2
      --Photo1.1
      --Photo1.2
      --Photo1.3
      --Photo1.4
      --Photo1.5

Thanks,
js32821

  #2 (permalink)  
Old September 2nd, 2007, 02:20 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Huh?

Can you elaborate? What chapter are you referring to?

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
  #3 (permalink)  
Old September 2nd, 2007, 11:57 PM
Registered User
 
Join Date: Sep 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Chapter 7 - Photo Album

Actually, I want add 5 detail photos to each main photo.

i.e: after click in a Collection(photo), the system will show all photos available for that Collection. Then when I click in one of those photos, I would like to show selected photo and 5 more photos showing different angles of the selected photo.

Thanks,

  #4 (permalink)  
Old September 3rd, 2007, 11:16 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Here's what I would do conceptually.

1. Extend the Photo table with a ParentId

2. When inserting the main picture, leave this ParentId empty.

3. Redirect to a new page and forward the new PhotoId of the picture you just inserted.

4. On this new page, allow the user to insert 5 (or any number) of pictures and save them in the database. Pass the Id of the first image from step 3 in the ParentId picture.

5. When you display the main PhotoPicture you can query its children using something like

SELECT .... WHERE ParentId = Id

where Id is the ID of the main picture.


Does this help?

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
  #5 (permalink)  
Old September 3rd, 2007, 12:40 PM
Registered User
 
Join Date: Sep 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am gonna try this.
Thank you for your help.

I really appreciated.

js32821

  #6 (permalink)  
Old September 3rd, 2007, 12:48 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You're welcome. Good luck.

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004


Similar Threads
Thread Thread Starter Forum Replies Last Post
Serializing photos/files to a database w/ MySQL ironchef Pro JSP 1 December 19th, 2007 11:28 PM
Displaying photos via a database Mike707 Dreamweaver (all versions) 12 April 17th, 2006 12:33 AM
Ridiculus photos shapira BOOK: Professional Crystal Reports for VS.NET 0 March 7th, 2005 08:11 PM
Uploading Photos microchip Classic ASP Basics 6 April 25th, 2004 10:15 AM
Photos in access kev_79 Access 1 July 24th, 2003 02:24 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.