title: How to submit a table with dynamic rows of data via asp.net mvc or jquery?
body: <p>i'm totally noob to asp.net mvc and currently i'm writing an web app which allows user to select multiple product from a listbox and add them to a dynamic table with rows that can be added or removed.</p>
  
  <p>thus i'm thinking of using jquery to add and remove the table row, thus the table row will be added via append("xxx").</p>
  
  <p>but the thing is i'm not that familiar with asp.net mvc form submission, from my understanding thus far, i can retrieve the value later via form["id"] but if i were to create the table row via that method, i'm thinking it's either going to be with the same id, or i can use a running no id and a hidden input to keep track of how many products that is added.</p>
  
  <p>also i probably want to hide the whole product table when all the products were removed.</p>
  
  <p>p.s. kinda feel that my way is sort like a big fugly messy hack which will come back n bite me one day.</p>
  
  <h2>Questions:</h2>
  
  <ol>
  <li>does asp.net mvc has a good way to
  handle all of this? i've read
  something about mvc tempdata.</li>
  <li>and is there a better way for me to
  handle the dynamic product
  generation? to make things easier
  later for form submission in asp.net
  mvc </li>
  <li>and also i found that you can
      actually submit the form via jquery
      too, is there any pros n cons
      between the two method? in terms of
      maybe performance, security,
      maintenance, etc?</li>
  </ol>
  
  <p>thanks</p>