protected void BtnBuscar_Click(object sender, EventArgs e) { if (TXTBuscar.Text.Trim() == string.Empty) { TXTBuscar.BorderColor = System.Drawing.Color.Red; AlertaID.Visible = true; ListarRechazo(); } else { Controlador.ControladorTareas AuxControladorTarea = new Controlador.ControladorTareas(); Modelo.RechazoTarea RECHAZO = new Modelo.RechazoTarea(); RECHAZO = AuxControladorTarea.ObtenerIDRechazoTarea(Convert.ToInt32(TXTBuscar.Text)); if (RECHAZO.ID_TAREA1 != Convert.ToInt32(TXTBuscar.Text)) { TXTBuscar.BorderColor = System.Drawing.Color.Red; AlertaIDNoExiste.Visible = true; AlertaID.Visible = false; ListarRechazo(); } else { TXTBuscar.BorderColor = System.Drawing.Color.Green; AlertaID.Visible = false; AlertaIDNoExiste.Visible = false; ListarRechazoConFiltro(); } } }