Re: Shopping Cart not updating until refresh

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



I have managed to make progress by adding a sleep before redirecting.
This allows time for the the update to run on the database before
redirecting to the Cart page. However, this obviously isnt the desired
solution.

Any ideas?

The code now reads :

Public Sub AddToCart_Click(ByVal sender As Object, ByVal e As
System.Web.UI.ImageClickEventArgs) _
Handles AddToCart.Click

> cart.AddItem(CartID, Request.Params("productid"), ProductDetailID, 1,
> cboSize.SelectedValue, cboColour.SelectedValue, CDec(lblUnitCost.Text))
>
> Threading.Thread.Sleep(500)
>
> Response.Redirect("ShoppingCart.aspx")

.



Relevant Pages

  • Re: Loading progress bar
    ... AJAX upload progress meter in PHP: ... that it prevents me at the end from redirecting. ... It is the first time I am doing that. ...
    (comp.lang.php)
  • Re: Record Not Updated Until Page Refreshed
    ... It triggers the AddItem code which then updates the database. ... I have managed to make progress by adding a sleep before redirecting. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: .forward file seems to be ignored
    ... >> but no progress. ... >> .forward file) of redirecting all mail? ... Put your homedir permission back the way they were ... Prev by Date: ...
    (Fedora)
  • Redirecting
    ... I am using database based authetication for users. ... authenticated I am redirecting the user to a different page in the same ... folder. ...
    (microsoft.public.dotnet.languages.csharp)