protected void btnGuardarFlotilla_Click(object sender, EventArgs e) { cClientes cc = new cClientes(); cc.ClienteId = Convert.ToInt32(lblidCliente.Text); cc.GuardaFlotillas(0, txtNombreFlotilla.Text, 1); TraeFlotillas(); }
protected void gvFlotillas_RowCommand(object sender, GridViewCommandEventArgs e) { String Valor = e.CommandArgument.ToString(); String Opc = e.CommandName.ToString(); switch (Opc) { case "EliminarFlotilla": cClientes cc = new cClientes(); cc.ClienteId = Convert.ToInt32(lblidCliente.Text); cc.GuardaFlotillas(Convert.ToInt32(Valor), "", 0); TraeFlotillas(); break; } }