protected void btnInserirCliente_Click(object sender, EventArgs e) { ClientesRotasNeg _ClienteRotaNeg = new ClientesRotasNeg(); ClientesRotasMod _ClienteRotaMod = new ClientesRotasMod(); if (!(lblCodClienteRota.Text == string.Empty)) { _ClienteRotaMod.iCodigoClientesRotas = Convert.ToInt32(lblCodClienteRota.Text); } _ClienteRotaMod.iCodRota = Convert.ToInt32(lblCodigoRotaValor.Text); _ClienteRotaMod.iCodCliente = Convert.ToInt32(ddlClientes.SelectedValue); _ClienteRotaMod.iSequencialRota = gdvClientesRotas.Rows.Count + 1; _ClienteRotaNeg.salvar(_ClienteRotaMod); limpar(); CarregaGridClientesRotas(); }