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