Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > ASP E-commerce
|
ASP E-commerce As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP E-commerce 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 October 31st, 2003, 05:36 PM
Registered User
 
Join Date: Oct 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Beginning ASP.NET E-Commerce with Visual Basic .Ne

Hi everyone!

I'm at Chapter 10 that is about checkout an order.

Before the step of checking out, It shows the list that I order in my shopping cart. However, once I click on 'place order' button to checkout, (I have to go through processing of logging in), there is NO ITEM existed in my shopping cart anymore.

I think there might be some errors in Checkout.aspx section.

Any thoughts?!

Thanks so much. Hope to hear from you soon!
-TH

 
Old November 3rd, 2003, 08:42 PM
Registered User
 
Join Date: Oct 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I FOUND WHAT AN ERROR IS and PLEASE CONFIRM IT'S A MISTAKE OF THE CODE !!!!

As I said, I've finished Chapter 10, and found out the error of my previous email.

I did debug over and over and found out that the error is from stored procedure CreateOrder in chapter 9 (page 301). This sp serves 2 purposes:
   1. Create new records in the Orders table
   2. Empty shopping cart

When I click on the 'Place Order' button, it triggers this sp CreateOrder. This is the reason why i can't view the list of my shopping cart in the Checkout page, because all of the data
regarding to this session was removed from shoppingcart due to the sp CreateOrder.

I've removed this 'emty shopping cart' from this sp CreateOrder for now. However, please let me know!!!!

Thanks so much!

Best regards,
-TH


 
Old November 17th, 2003, 12:27 AM
Authorized User
 
Join Date: Nov 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to imran4sin
Default

Thanks for the above info.. ive just started it..on chap2.

This might help you out...

<http://support.apress.com/books.asp?bID=1861007507&s=0&Go=Select+Book>

Imran.
-=there are 10 type of people in this world=-
 -those who understand binary and the rest-
 
Old December 18th, 2003, 09:56 AM
Authorized User
 
Join Date: Jul 2003
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for posting your findings guys. I am at chapter 8. There are
many errors in the book. There is no errata available for this book. I have tried to contact the writer of this book, Cristian Darie but haven't heard back from him yet. There is definitely need of errata for this book.

Thanks,
Omer
 
Old March 14th, 2004, 02:56 PM
Authorized User
 
Join Date: Jan 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi!

Has anyone here succesfully made it past chapeter 10?

I am stuck at the same place atth3027 mentions. However, I do not this his solution is correct.

By removing the line -- EXEC EmptyShoppingCart @CartID -- from the stored procedure CreateOrder, the shopping cart is never cleared.

This really a shame, because other than this step and a little problem I am having in the admin section this application working great.

-Michael

 
Old March 24th, 2004, 04:48 PM
Registered User
 
Join Date: Mar 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey everyone. I seem to be having a problem in chap 9 entering the createorder stored procedure. When I try saving it in visual studio, it gives me an error. Anyone have a solution?
Thanks
 
Old March 24th, 2004, 05:47 PM
Registered User
 
Join Date: Jun 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to eirikr Send a message via MSN to eirikr
Default

Try this one:

The "Private Sub placeOrderButton_Click" code in ShoppingCart.aspx.vb shall look like this:

Private Sub placeOrderButton_Click(ByVal sender As System.Object, _
            ByVal e As System.EventArgs) Handles placeOrderButton.Click

        ' Redirect to checkout page
        Response.Redirect("Checkout.aspx")
    End Sub


So remove everything else in Private Sub placeOrderButton_Click in ShoppingCart.aspx.vb

Don't remove anything else from any sp or ShoppingCart.vb!!!!!


_____________

Eirik



eirikr
 
Old March 24th, 2004, 07:37 PM
Registered User
 
Join Date: Mar 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry, I figured out my mistake. An error on my part. Thanks for the help though.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Source Codes: Beginning Visual Basic .NET Database cyberlearner All Other Wrox Books 4 July 3rd, 2014 08:13 AM
"Beginning E-Commerce with Visual Basic, ASP, SQL mcinar All Other Wrox Books 6 November 20th, 2007 06:50 AM
Using ASP.NET Code-Behind Without Visual Studio.NE rupen ASP.NET 1.0 and 1.1 Basics 0 October 12th, 2005 05:21 AM
Beginning ASP.NET E-Commerce attipa All Other Wrox Books 1 July 11th, 2003 09:15 AM
Beginning E-Commerce with Visual Basic, ASP and SQ [email protected] All Other Wrox Books 0 June 13th, 2003 11:55 AM





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