Re: Shopping Cart not updating until refresh

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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!!

.



Relevant Pages

  • Re: strange behaviour using arrays to update records
    ... I dont get any errors now but the ... records are not updating. ... follow its suggestion for not displaying it as I dont think I can alter any ... You need to iterate through your arrays and call addslashes on each ...
    (comp.lang.php)
  • Re: stock brocking web application
    ... notify the presentation layer when a change occurs and update the ... dont know JavaSpace probably now is the time to have a look. ... row in a table rather than updating whole table... ...
    (comp.lang.java.programmer)
  • Re: [Full-Disclosure] EEYE: Microsoft ASN.1 Library Length Overflow Heap Corruption
    ... there is a problem with that because most Microsoft patches are ... updating a dll. ... So if your are not looking for both you dont have an ...
    (Full-Disclosure)
  • Re: Serial
    ... > tks for the reply. ... > I am trying talking to HP but they dont make a lot of sense. ... > adapter cards are properly seated in their slots. ... try updating the driver for that device from the Device Manager ...
    (microsoft.public.windowsxp.general)
  • Re: Calculations
    ... I dont' know how to do that. ... Pleas help and I thank you so much. ... >> section I have the ProductID field, Quantity field and a Price field ...
    (microsoft.public.access.reports)