protected void EliminarButton_Click(object sender, EventArgs e) { Tareas.Eliminar(Util.ObtenerEntero(this.IdtareaTextBox.Text)); { this.VaciarCampos(); } }
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!"); } } }