Wrox Programmer Forums
|
BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5
This is the forum to discuss the Wrox book Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter Kit by David Sussman, Alex Homer; ISBN: 9780764588075
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 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 4th, 2006, 05:38 AM
Registered User
 
Join Date: Mar 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem with the PPQ example

I'm trying the 'pizza' example from "ASP.NET 2.0 VWD Express"-book and keep getting this error on the Checkout page:
Can anyone give me some help pls.
And explain me what this code does as this isn't explained in the book !!
-----------------------------------------------------
Item has already been added. Key in dictionary: 'DeliveryCharge' Key being added: 'Deliverycharge'
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Item has already been added. Key in dictionary: 'DeliveryCharge' Key being added: 'Deliverycharge'

Source Error:
Line 11: Dim ddl As DropDownList = _
Line 12: DirectCast(FormView1.FindControl("DropDownList1"), DropDownList)
Line 13: e.InputParameters.Add("Deliverycharge", ddl.SelectedValue)
Line 14:
Line 15: End Sub
Source File: I:\WEBSITE\Test1\Checkout.aspx.vb Line: 13
-----------------------------------------------------------------

Edmond
 
Old September 10th, 2007, 08:59 AM
Registered User
 
Join Date: Sep 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This issue is that there is an error in the code. It is in the errata section of the site. Change your line to:

        e.InputParameters("DeliveryCharge") = ddl.SelectedValue

Hope this helps.
Kevin






Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 1 Missing "PPQ.master does not exsist" losercore BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 0 September 13th, 2007 10:09 AM





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