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 May 31st, 2006, 09:48 AM
Registered User
 
Join Date: May 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mbeppe
Default Chapter 8: checkout process

In the Wizard's ShoppingCart section, i notice that:
-if i change the value of delivery to DDL, the new value in NOT reported in FormView's Delivery

-The same, if a edit, from here via UC cart, a quantity of an ordered line, the new modified value is NOT reported in FormView's Subtotal.

Need a databind?

regard

 
Old September 19th, 2006, 11:16 PM
K2 K2 is offline
Registered User
 
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, I noticed that too.
I did the following to get around it.

It isn't pretty, but it does work.

To get the Total to update when the order has been edited, I did the following:
Edit the User-Controls/Cart.ascx file and add a procedure to the ObjectDataSource1.Updated event

**** Begin Code Insert ***
        Dim crt As user_controls_Cart = DirectCast(ObjectDataSource1.Parent, user_controls_Cart)
        If crt.BindingContainer.ID = "Wizard1" Then
            Dim dv As DetailsView = DirectCast(crt.Parent.FindControl("DetailsView1"), DetailsView)
            dv.DataBind()
        End If
    End Sub
**** End Code Insert ****

To get the Delivery Amount to update when that changes, edit the Checkout.aspx unit and add a procedure for the Wizard1.ActiveStepChanged Event:

**** Begin Code Insert ****
        If Wizard1.ActiveStepIndex = 2 Then
            DetailsView1.DataBind()
        End If
**** End Code Insert ****

Can anyone else think of a better way?

K2
 
Old August 8th, 2007, 01:08 PM
b67 b67 is offline
Authorized User
 
Join Date: Sep 2006
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to b67
Default

I actually just worked up to this point in chapter 8 and was playing around and noticed this problem. I have not thought of a solution yet but I would think that the detailsView should be part of the Cart.Ascx Control. Maybe after that is done a bind can be placed in in the Updating, Deleting, inserting events of the object datasource

..would be nice to get an author opinion here :)

 
Old August 9th, 2007, 04:25 PM
b67 b67 is offline
Authorized User
 
Join Date: Sep 2006
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to b67
Default

I see this has been a question for a long time - support is not that great here, huh?

For a great book check out ASP instant results by spaanjaars (WROX) - the author is very active in the support forom

Hopefully we can get an answer here

 
Old August 10th, 2007, 07:59 AM
jminatel's Avatar
Wrox Staff
Points: 18,059, Level: 58
Points: 18,059, Level: 58 Points: 18,059, Level: 58 Points: 18,059, Level: 58
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2003
Posts: 1,906
Thanks: 62
Thanked 139 Times in 101 Posts
Default

The authors have been very good about answering most questions promptly. This one must have just slipped through, I'll remind them to take a peek at it as soon as they can.

Jim Minatel
Acquisitions Director
Wiley Technology Publishing
WROX Press
Blog: http://wroxblog.typepad.com/





Similar Threads
Thread Thread Starter Forum Replies Last Post
process.startinfo opens new instance of process Anypond General .NET 0 August 28th, 2008 05:35 AM
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
Error in checkout fase paolo70 BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 2 September 10th, 2007 09:03 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





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