Hello Again!
I am trying to create a shopping cart in ASP. I have been successful in that I can add single items to the shopping cart, however, I cannot seem to delete them from the shopping cart. Below is the code that I have for a delete item script, basically taken from asp101, but I can't seem to get it to work. Any suggestions?
Thanks,HTML Code:Sub DeleteItemFromCart() Dim ItemID ItemID = Request.QueryString("Key") Set dctCart = Session("ShoppingCart") If dctCart.Exists(ItemID) Then dctCart.Remove dctCart(ItemID) Else Response.Write("Couldn't find that item.<br>") End If Set Session("ShoppingCart") = dctCart End Sub
Jim P.




Reply With Quote