title: Pass array of strings via jquery post to ASP.net
body: <p>What I have is a table that holds 3 input elements, They represent order, name, value. The user can add a new row of 3 inputs to add as many of these sets of data as they want.</p>
  
  <p>To accomplish the dynamically adding in of inputs I use jquery's clone method.</p>
  
  <p>That works fine and I am able to iterate through each and grab the values, however the real pain I am having is that when the user has entered in all of the data I want to pass that data to an asp.net page through jQuery's post method. How do I go about passing an array of strings so that I send this format to the asp.net page, and when I've done that how do i parse the data on the asp.net side of it.</p>
  
  <p>Desired Data Format:</p>
  
  <p>["Name|Link|Order", "Name|Link|Order", "Name|Link|Order"]</p>
  
  <p>jquery Code so far:</p>
  
  <pre><code>$("#saveBtn").click(function (e) {
  
          e.preventDefault();
  
          $("#addPanel").slideUp(300);
  
          //Perform Save Operation
          var saveString = "";
  
          $("#addTable tbody&gt;tr").each(function () {
  
              var o = $(this).find(".hsaorder").val();
              var n = $(this).find(".hsaname").val();
              var l = $(this).find(".hsalink").val();
  
              saveString += n + "|" + l + "|" + o ;
  
  
          });
  
          ////// Create Array here or some other method?
  
  
          $.post("/modules/H/Modify.aspx", { OBVIOUSLY SOMETHING GOES HERE});
  
          // Remove all but top table element to return to original state
          $("#addTable tbody&gt;tr").not("#addTable tbody&gt;tr:first").remove();
  
  
      });
  </code></pre>