cart = Session("cart") If e.CommandName = "Remove" Then If cart Is Nothing Then cart = New buysell.ShoppingCart() End If curitem.ProdId = CInt(GridView1.SelectedValue.Cells(0).Text) curitem.ProdName = CInt(GridView1.SelectedRow.Cells(1).Text) curitem.Size = CInt(GridView1.SelectedRow.Cells(2).Text) curitem.Quantity = CInt(GridView1.SelectedRow.Cells(3).Text) curitem.Price = CInt(GridView1.SelectedRow.Cells(4).Text) cart.DeleteItem(curitem) Session("cart") = cart GridView1.DataSource = cart.Items GridView1.DataBind()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)