Example #1
0
        protected void gvCarrito_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            if (e.CommandName != "EliminarDetalle")
            {
                return;
            }
            CarritoDetalle detalle = new CarritoDetalle()
            {
                Id = Convert.ToInt32(e.CommandArgument)
            };

            CarritoManager.EliminarDetalle(detalle);
            CargarGvCarrito();
        }