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 April 14th, 2006, 07:09 AM
Registered User
 
Join Date: Apr 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error in checkout fase

if i try to checkout an order, go wrong; this is the error

Server Error in '/complete' Application.
--------------------------------------------------------------------------------

'DropDownList1' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value
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.ArgumentOutOfRangeException: 'DropDownList1' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ArgumentOutOfRangeException: 'DropDownList1' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value]
   System.Web.UI.WebControls.ListControl.PerformDataB inding(IEnumerable dataSource) +966
   System.Web.UI.WebControls.ListControl.OnDataBindin g(EventArgs e) +79
   System.Web.UI.WebControls.ListControl.PerformSelec t() +32
   System.Web.UI.WebControls.BaseDataBoundControl.Dat aBind() +99
   System.Web.UI.Control.DataBindChildren() +236
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +178
   System.Web.UI.Control.DataBind() +31
   System.Web.UI.Control.DataBindChildren() +236
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +178
   System.Web.UI.Control.DataBind() +31
   System.Web.UI.Control.DataBindChildren() +236
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +178
   System.Web.UI.Control.DataBind() +31
   System.Web.UI.Control.DataBindChildren() +236
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +178
   System.Web.UI.WebControls.FormView.CreateChildCont rols(IEnumerable dataSource, Boolean dataBinding) +3065
   System.Web.UI.WebControls.CompositeDataBoundContro l.PerformDataBinding(IEnumerable data) +89
   System.Web.UI.WebControls.FormView.PerformDataBind ing(IEnumerable data) +31
   System.Web.UI.WebControls.DataBoundControl.OnDataS ourceViewSelectCallback(IEnumerable data) +126
   System.Web.UI.DataSourceView.Select(DataSourceSele ctArguments arguments, DataSourceViewSelectCallback callback) +98
   System.Web.UI.WebControls.DataBoundControl.Perform Select() +154
   System.Web.UI.WebControls.BaseDataBoundControl.Dat aBind() +99
   System.Web.UI.WebControls.FormView.DataBind() +23
   System.Web.UI.WebControls.BaseDataBoundControl.Ens ureDataBound() +92
   System.Web.UI.WebControls.FormView.EnsureDataBound () +177
   System.Web.UI.WebControls.CompositeDataBoundContro l.CreateChildControls() +100
   System.Web.UI.Control.EnsureChildControls() +134
   System.Web.UI.Control.PreRenderRecursiveInternal() +109
   System.Web.UI.Control.PreRenderRecursiveInternal() +233
   System.Web.UI.Control.PreRenderRecursiveInternal() +233
   System.Web.UI.Control.PreRenderRecursiveInternal() +233
   System.Web.UI.Control.PreRenderRecursiveInternal() +233
   System.Web.UI.Control.PreRenderRecursiveInternal() +233
   System.Web.UI.Control.PreRenderRecursiveInternal() +233
   System.Web.UI.Control.PreRenderRecursiveInternal() +233
   System.Web.UI.Control.PreRenderRecursiveInternal() +233
   System.Web.UI.Control.PreRenderRecursiveInternal() +233
   System.Web.UI.Control.PreRenderRecursiveInternal() +233
   System.Web.UI.Control.PreRenderRecursiveInternal() +233
   System.Web.UI.Control.PreRenderRecursiveInternal() +233
   System.Web.UI.Control.PreRenderRecursiveInternal() +233
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4437




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

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

The issue is with the code in the book. In the errata section it says to change your line to:

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


Hope this helps.
Kevin

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

That reply was for the wrong topic. I think your issue is that you changed either the spelling of pizza or drink in your database. If you have anything other than pizza or drink it will not work because the entries in the drop down list are hard coded.

Hope this helps.
Kevin






Similar Threads
Thread Thread Starter Forum Replies Last Post
C# Chap13, Checkout (Last Exercise) onlinecg BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 February 20th, 2008 05:49 AM
Chapter 8: checkout process mbeppe BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 4 August 10th, 2007 07:59 AM
Checkout Issue rsm42 ASP.NET 1.0 and 1.1 Basics 4 November 27th, 2006 03:50 PM
Checkout Problem rsm42 ASP.NET 1.0 and 1.1 Basics 0 November 11th, 2006 06:29 AM
Find the book's code:Fase Track ASP.NET c# Edition Pan Wuying All Other Wrox Books 0 October 28th, 2003 10:54 PM





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