my god dam decrease button works............ it was just a fluke i'dont know how it works but it works HAZA!!!!!!!!!!!!
' get the CartID of the row that has been selected
Dim intCartID As Integer = e.CommandArgument
' Instantiate a User object.
Dim ThisShoppingCart As ShoppingCarts = Session("shoppingCart")
' Determine what the CommandName is & call operations accordingly.
If e.CommandName = "Increase" Then
ThisShoppingCart.IncreaseCartQuantity(intCartID)
End If
If e.CommandName = "Decrease" Then
ThisShoppingCart.DecreaseCartQuantity(intCartID)
End If
If e.CommandName = "Remove" Then
ThisShoppingCart.RemoveFromCart(intCartID)
End If
' WORKAROUND: Refresh the page to ensure the user panel is updated with current shoppingcart info.
Response.Redirect("shoppingCart.aspx")
End Sub
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment