protected void btnModifica_Click(object sender, EventArgs e) { try { wsBanco.agencia modificar = control.modificarAgencia(txtNombre.Text, txtDireccion.Text); if (control.modificarAgencia(txtNombre.Text, txtDireccion.Text) != null) { lblMen.Text = "Debe llenar todos los campos para modificar"; } else { limpiarCampos(); lblMen.Text = "modificacion exitosa"; } } catch { lblMen.Text = "algun campo no esta lleno"; } }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { try { wsBanco.agencia age = control.buscarAgencia(txtBuscar.Text); if (control.busquedaClienteindividual(int.Parse(txtBuscar.Text)) != null) { txtNombre.Text = age.nombre; txtDireccion.Text = age.direccion; lblMen.Text = "busqueda exitosa"; } else { lblMen.Text = "nombre de agencia no existe, desea registrarlo?"; } } catch { lblMen.Text = "Debe llenar el campo de busqueda"; } }