title: Saving and recalling asp.net form field values - is there a better way?
body: <p>ASP.Net forms, SQL, C#</p>
  
  <p>I have an app that needs to save the state of text boxes, check boxes, radio buttons, etc.. and then it has to allow recalling of that form's state at some future time. </p>
  
  <p>My current solution is to iterate through all of the input fields and store the field ID and field value in an XML string which is then pushed into nvarchar or text field in a SQL table. The reason I do this is that over time the form can have varying fields on it so I can't dump directly into a known set of fields in a table. </p>
  
  <p>At a future time the user can recall the "state record" and all the fields that still exist are re-populated and any new fields are left blank.</p>
  
  <p>This works pretty well but I was wondering if anyone has accomplished this in a different manner or better way? </p>
  
  <p>The idea for this project is that my users make a number of selections on a page to create a "query" and I want to have a feature where they can recall a previously saved "query".</p>