protected void btnModificarc_Click(object sender, EventArgs e) { try { Cliente cliente = new Cliente { IdCliente = Convert.ToInt32(txtCedula1.Text), Cedula = Convert.ToInt32(txtCedula.Text), Nombre = txtNombre.Text, Apellido = txtApellidos.Text, Direccion = txtDireccion.Text, Telefono = Convert.ToInt32(txtTelefono.Text), }; ICliente clien = new MCliente(); clien.ActualizarCliente(cliente); MostarMensaje("Cliente Modificado"); divMantenimiento.Visible = false; txtCedula.Enabled = true; txtCedula.Text = string.Empty; txtCedula.Focus(); } catch (Exception) { MostarMensajeError("Ocurrio un error"); } }