Re: Shopping Cart not updating until refresh
- From: "Winshent" <winshent-google@xxxxxxxxxxx>
- Date: 4 Aug 2005 13:18:15 -0700
Hi Kevin
i dont think i have explained my problem.. the code above all works
fine.. the record is updated if the item exists. as i say this all
works.. what doesnt work is the code that calls it.
this is the code that calls it
'############################################################
Public Sub AddToCart_Click(ByVal sender As Object, _
ByVal e As System.Web.UI.ImageClickEventArgs) _
Handles AddToCart.Click
'some other code
cart.AddItem(CartID, Request.Params("productid"), ProductDetailID, 1,
_
cboSize.SelectedValue, cboColour.SelectedValue,
CDec(lblUnitCost.Text))
Response.Redirect("ShoppingCart.aspx")
End Sub
'############################################################
As you can see from this.. the item is added to the cart.. whether that
be adding a new record.. or updating the quantity field of an existing
record, it then redirects the user to the ShoppingCart.aspx page.
However, when it follows the route of updating the quantity field of an
existing record, the ShoppingCart.aspx does not reflect the update.
The update only shows when you then refresh the ShoppingCart.aspx
page..
ie.. when adding a product for a second time, the shopping cart page
initially still shows a quantity of 1. When i press refresh, it
displays 2.
Its really weird!!
still dont know what to do about this!!
.
- Follow-Ups:
- Re: Shopping Cart not updating until refresh
- From: Winshent
- Re: Shopping Cart not updating until refresh
- References:
- Shopping Cart not updating until refresh
- From: Winshent
- Re: Shopping Cart not updating until refresh
- From: Kevin Spencer
- Re: Shopping Cart not updating until refresh
- From: Winshent
- Re: Shopping Cart not updating until refresh
- From: Kevin Spencer
- Shopping Cart not updating until refresh
- Prev by Date: Integrating JavaScript
- Next by Date: Re: How to get ASP.NET working on new box
- Previous by thread: Re: Shopping Cart not updating until refresh
- Next by thread: Re: Shopping Cart not updating until refresh
- Index(es):
Relevant Pages
|