Wrox Programmer Forums
|
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
 
Old March 10th, 2008, 05:10 AM
Registered User
 
Join Date: Mar 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Adding Color and Size parameters to WEBSHOP Cart.

Hi,
I've worked through the web shop example a few times with good results.

I need to modify ProductDetail.aspx to include a size and colour list box.

This is not the problem, I can create the list boxes and populate them from the DB, I need help working out how to send the selections to the cart.

Using .Net 2.0 and SQL2005.

Thanks in advance.
 
Old March 10th, 2008, 01:12 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

You could extend the OrderedProduct class and add fields for size and color, similar to the Quantity property. Then on the details page of a product, show the relevant options and set them on OrderedProduct when a user adds an item to the cart.

Does this help?

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
 
Old March 10th, 2008, 01:36 PM
Registered User
 
Join Date: Mar 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for your prompt response.

Of course! It's always simple when someone states the obvious :)

Your reply has been a great help.

Thanks again...

Regards
Dean
 
Old March 10th, 2008, 01:39 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You're welcome.

Good luck and let me know when you need more help implementing this...

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding products to webshop not working. mcarol44 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 21 July 28th, 2011 09:09 AM
Adding products to a shoping cart Guerra BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 4 March 16th, 2009 10:15 AM
webshop - shopping cart - button logic cpmi BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 April 19th, 2008 08:42 AM
Adding update feature to Webshop mcarol44 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 January 4th, 2008 12:53 PM
Webshop adding tables. Rebel BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 25 October 28th, 2007 09:28 AM





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