protected void BtnBuscar_Click(object sender, EventArgs e) { if (TXTBuscar.Text.Trim() == string.Empty) { TXTBuscar.BorderColor = System.Drawing.Color.Red; AlertaID.Visible = true; ListarProblema(); } else { Controlador.ControladorTareas AuxControladorTarea = new Controlador.ControladorTareas(); Modelo.Reportar_Problema reportar = new Modelo.Reportar_Problema(); reportar = AuxControladorTarea.ObtenerIDReportarProblema(Convert.ToInt32(TXTBuscar.Text)); if (reportar.ID_PROBLEMA1 != Convert.ToInt32(TXTBuscar.Text)) { TXTBuscar.BorderColor = System.Drawing.Color.Red; AlertaIDNoExiste.Visible = true; AlertaID.Visible = false; } else { TXTBuscar.BorderColor = System.Drawing.Color.Green; AlertaID.Visible = false; AlertaIDNoExiste.Visible = false; ListarProblemaConFiltro(); } } }