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 8th, 2007, 08:03 AM
Registered User
 
Join Date: Mar 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Instant Results Modification of webshop problems

First of all thank you for such a superb book! I have learned so much from this.

I am struggling with what I thought would be a simple modification which I trust you can help with. I think that I am missing something inherently simple.

I am using the skeleton from The instant results book as a basis for my project. Rather than a web shop it is a scenario where users select items from the database always in a quantity of 1 item and with no fixed price. I need to allow clients to be able to input their own prices during the shopping cart session or at the checkout stage.

I thought this would be an easy thing to implement but I'm stuck!!

Any help would be VERY welcome! As I am a bear of very little brain.

Many thanks in advance:)

Malex
 
Old March 8th, 2007, 04: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 Malex,

Here's what I would do from a high level overview:

1. Change the OrderedProduct class by renaming the Quantity property to Price, or something like that. Make sure you change all underlying fields in the database and stored procedures as well. You may also need to change the type from an Int to a double.

2. In the ShoppingCart, change the DropDownList to a TextBox

3. Within the Update code, get a reference to the new TextBox, get the price and then update the Price property, similar to how it's done now with the quantity.

4. Replace all references to Quantity with Price in the ASPX pages (databinding, update code and so on).

If there are specific questions you need help with, let me know...

Cheers,

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
Want to be my colleague? Then check out this post.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Instant Results - Add SubMenu Items jvm2552 ASP.NET 2.0 Professional 1 September 4th, 2007 01:13 PM
Webshop modification El Presidente BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 21 December 6th, 2006 03:14 PM
Instant Results - CMS Admin Problem NickNelson BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 November 30th, 2006 04:49 PM
Webshop Modification saf BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 5 November 3rd, 2006 07:49 PM
Errata available for ASP.NET 2.0 Instant Results Imar BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 0 July 31st, 2006 03:18 PM





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