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.