title: where should I save a complex MVC application UI state?
body: <p>I've been having a look at several MVC frameworks (like rails, merb, cakephp, codeignitier, and similars...)</p>
  
  <p>All the samples I've seen are basically plain and simple CRUD pages, carrying all the infr needed in the querystring and the posted field values.</p>
  
  <p>I've got a couple of apps made with some sort of framework built with classic asp.</p>
  
  <p>This framework handles some CRUD stuff a little more complex than the examples I found.</p>
  
  <p>Something like master-detail, filtering by example, paging, sorting and similars.</p>
  
  <p>I have a controller class that it's just a finite state machine, that goes thru diferent states (like new, browse, filter, show, etc.), then performs the appropiate action depending on the event raised and finally retrieves the neede info to the calling page.</p>
  
  <p>To achieve this I have several hidden inputs to keep the state of the web page (like current id, filter criterias, order criterias, previous state, previous event, well, you get the idea)</p>
  
  <p>What do you think would be the finnest approach to achieve this kind of funcionality?</p>
  
  <p>hidden inputs built in the view and used from the controller??? (I guess that would be the equivalent of what I'm doing right now in classi asp)</p>
  
  <p>--</p>
  
  <p>(added in response to tvanfosson)</p>
  
  <p>basically, my question refers to the third category, the context-dependent setting (in respect to the other two categories I agree with you) the info I was storing in hidden fields to store them on the querystring, I guess that when you click on the "next page" you include everything you need to save in the querystring, right? so that piece of query string gets appended in each and every link that performns some kind of action...</p>
  
  <p>I'm not sure, what are the advantages and disadvantages of using the querystring instead of hidden inputs???</p>