protected void EliminarButton_Click(object sender, EventArgs e)
 {
     Tareas.Eliminar(Util.ObtenerEntero(this.IdtareaTextBox.Text));
     {
         this.VaciarCampos();
     }
 }
Beispiel #2
0
 protected void EliminarButton_Click(object sender, EventArgs e)
 {
     if (Request.QueryString["IdTarea"] != null)
     {
         tarea.IdTarea = int.Parse(Request.QueryString["IdTarea"].ToString());
         if (tarea.Eliminar())
         {
             Response.Write("Registro Eliminado!");
         }
         else
         {
             Response.Write("Error operacion fallida!");
         }
     }
 }