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