title: ASP.NET MVC: Keeping last page state
body: <p>Here's the situation: i have a SearchPage where an user can make a complex search. Nothing really unusual. After the results are displayed, the user can select one of them and move to another Page (Like a Master/Detail).</p>
  
  <p>I have a breacrumb which holds the places where the user has been and it can have more than 4 levels (Like Main -> 2Page -> 3Page -> 4Page -> NPage). What i want is to maintain the state of each control on my complex search page, if the user uses the breacrumb to navigate backwards, since i don't want them to manually set all those search filters again.  </p>
  
  <p>So far, i've been using <code>javascript:history.back()</code>, but since i can have multiple levels on my breadcrumb, this hasn't been very useful. I was thinking about using <code>OutputCache</code> to do it, but i don't know how i would proceed.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I've just talked to a co-worker and he told me that some of our combobox (dropdownlist) are dynamically generated. So if the user select one item on the first combobox, the second will be filled with data related to the first selection.</p>