title: using Ajax to send information to classic ASP
body: <p>I have a reset button on my html table. When it's clicked, it gets information related to its row, particularly the 'record ID' and 'Active'. I'm trying to take the record Id number and send it to my asp page called resetinbound.asp </p>
  
  <p>This is my first time using AJAX so I'm not sure if what I'm doing is correct but here is the code for the On Click:</p>
  
  <pre><code> $(function(){
  $('button').on('click', function(){
      var tr = $(this).closest('tr');
      var RecID = tr.find('.RecID').text();
      var active = tr.find('.active').text();
      alert('id: '+RecID+', Active: ' + active);
  
  $.ajax({
              type: "POST",
               url: "resetInbound.asp",
               data: RecID,
               success: function() { 
                  alert("I am back after sending data sucessfully to server.");}
               });
        // Ajax call ends  
  
  
  
  });
  });
  </code></pre>
  
  <p>The ASP file code:</p>
  
  <pre><code>Dim RecID
  RecID = Request.QueryString("RecID")
  </code></pre>
  
  <p>I also tried Request.Form and Request.BinaryRead but none of them worked. It seems like the code doesn't even reach the ASP page at all. What am I doing wrong?</p>