|
|
 |
BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950
 | This is the forum to discuss the Wrox book ASP.NET MVC Website Programming Problem Design Solution by Nicholas Berardi, Al Katawazi, and Marco Bellinaso; ISBN: 9780470410950 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

November 3rd, 2009, 04:10 PM
|
|
Authorized User
|
|
Join Date: Mar 2009
Posts: 15
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
DeleteShoppingCartItem error
I get the following error in firefox.
[ArgumentException]: The parameters dictionary contains a null entry for parameter 'productId' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult DeleteShoppingCartItem(Int32)' in 'TheBeerHouse.Controllers.CommerceController'. To make a parameter optional its type should be either a reference type or a Nullable type.
It seems like it's looking for a dictionary pair???
This is similar to DeleteShippingMethod, except that works.
I'm at my wit...................s end.
|

November 3rd, 2009, 04:12 PM
|
 |
Wrox Author
|
|
Join Date: Aug 2008
Location: Phoenixville, PA, USA
Posts: 70
Thanks: 1
Thanked 9 Times in 9 Posts
|
|
The "productId" parameter isn't getting submitted to the action.
|
|
The Following User Says Thank You to nberardi For This Useful Post:
|
|

November 3rd, 2009, 04:21 PM
|
|
Wrox Author
|
|
Join Date: Aug 2008
Location: Pittsford, NY, USA.
Posts: 19
Thanks: 1
Thanked 4 Times in 4 Posts
|
|
To get this working
Alright this is a bug in the code we released. If you use firebug net tab and look at the post being made you can see under the post tab it is passing id instead of productid. to fix this problem simply change the variable name in the deleteshoppingcartItem action method from productID to id. Or change the offending javascript file to pass productID instead of id. Up to you.
|
|
The Following User Says Thank You to Al_Katawazi For This Useful Post:
|
|

November 3rd, 2009, 04:58 PM
|
|
Authorized User
|
|
Join Date: Mar 2009
Posts: 15
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
DeleteShoppingCart error
Thanks again guys,
I'm kind of embarrassed I didn't see that.
Not only are you guys good programmers...You're extremely prompt.
I stepped out for lunch and saw your reply when I returned.
Wish me luck...I'm getting ready to try out PayPal.
You the men!
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |