Re: Shopping Cart not updating until refresh
- From: "Winshent" <winshent-google@xxxxxxxxxxx>
- Date: 5 Aug 2005 05:18:16 -0700
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")
.
- 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
- Re: Shopping Cart not updating until refresh
- From: Winshent
- Shopping Cart not updating until refresh
- Prev by Date: Re: Datalist ItemDataBound modification
- Next by Date: Re: SQL backup procedure from ASP.NET
- Previous by thread: Re: Shopping Cart not updating until refresh
- Next by thread: Re: INamingContainer
- Index(es):
Relevant Pages
|