Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 8th, 2007, 08:03 AM
Registered User
 
Join Date: Mar 2007
Location: Manchester, , United Kingdom.
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
  #2 (permalink)  
Old March 8th, 2007, 04:12 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 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.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:14 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.