Ejemplo n.º 1
0
 protected void gvCart_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "RemoveItem")
     {
         CartHandler.RemoveItemFromCart(HttpContext.Current.User.Identity.Name, e.CommandArgument.ToString());
         gvCart.DataSource = CartHandler.GetCartByUser(HttpContext.Current.User.Identity.Name);
         gvCart.DataBind();
     }
 }