예제 #1
0
		private void rptProductsList_ItemCommand(object source, RepeaterCommandEventArgs e)
		{
			if (e.CommandName == "Remove")
			{
				BEShoppingCarts details = new BEShoppingCarts();
				BPShoppingCartDetails bp = new BPShoppingCartDetails();
				details = bp.SelectAllByCartIDAndProductID(CartID,Convert.ToInt32(((HtmlInputControl)e.Item.FindControl("hdnProductID")).Value));
				details.tbl_ShoppingCartDetails.Rows[0].Delete();
				bp.Update(details);
			}
			BindShoppingCart();
		}