protected void BtnAgregarMotivo_Click(object sender, EventArgs e) { if (TXTMotivo.Text.Trim() == string.Empty) { TXTBuscar.BorderColor = System.Drawing.Color.Red; Alerta.Visible = true; AlertaExito.Visible = false; } else { TXTMotivo.BorderColor = System.Drawing.Color.Green; Alerta.Visible = false; AlertaExito.Visible = true; Controlador.ControladorTareas AuxControladorTarea = new Controlador.ControladorTareas(); Modelo.Reportar_Problema AuxReportar = new Modelo.Reportar_Problema(); AuxReportar.ID_TAREA1 = Convert.ToInt32(IDTRANSFERIDO.Text); AuxReportar.Motivo1 = TXTMotivo.Text; AuxReportar.FechaHoy1 = DateTime.Today; AuxControladorTarea.ReportarProblema(AuxReportar); ListarProblema(); } }