title: Queue list of SQL commands to run at a later time without PostBack
body: <p>I have a fairly long modal form displaying information to the user. The user is able to add new records and delete records (from a gridview), and update information through normal form fields. While I'd like to show the changes on the form, I do not want to save the changes to the database until the <code>Submit</code> button is clicked. I thought I could Queue the SQL commands in a List and run them all once <code>Submit</code> is clicked</p>
  
  <p>However, I'd like to do this without having to do a postback each time a gridview is updated as waiting for the server to respond can be quite annoying if adding/deleting a lot of items. Is this possible only using JavaScript/jQuery, only doing a postback once <code>submit</code> is clicked? The only way I could think of is to append the SQL to a hidden HTML tag and run its contents when submitting, but of course that is not very secure.</p>
  
  <p>Alternatively, is there a way to do this through ASP itself and I am just completely over thinking this?</p>
  
  <p>Thanks in advance!</p>