protected void BtnComenzar_Click(object sender, EventArgs e) { Controlador.ControladorTareas AuxControladorTarea = new Controlador.ControladorTareas(); if (TXTBuscar.Text.Trim() == string.Empty) { TXTBuscar.BorderColor = System.Drawing.Color.Red; AlertaID.Visible = true; } else { if (AuxControladorTarea.verificarTarea(Convert.ToInt32(TXTBuscar.Text))) { AlertaIDNoExiste.Visible = false;; TXTBuscar.BorderColor = System.Drawing.Color.Green; AlertaID.Visible = false; int idrecibido = Convert.ToInt32(TXTBuscar.Text); AuxControladorTarea.ComenzarTarea(idrecibido); ListarTarea(); } else { TXTBuscar.BorderColor = System.Drawing.Color.Red; AlertaIDNoExiste.Visible = true; ListarTarea(); } } }