title: .NET MVC - List and Detail Views
body: <p>I think there is a simple answer to this, but for some reason I am hitting a writers block today.  I have an app which people can search (like any app :) ) and generate a list view.  From that list view, you can view details, which will take you to a details view.  No JS, just another page.  But, what I would like to do is to have a back/next button within the details view so that you can parse the result set without having to go back to the list and then select the next record.</p>
  
  <p>I have had two ideas on accomplishing this.  Idea 1) Have a next/previous record field in my custom class.  However, this wouldn't work as the search query will not necessarily return consecutive results and I would have to query the DB each time to get those next/prev listings.  Idea 2)  Have a list of IDs or some custom object passed in the view state for each detials view corresponding to the search results.  On this one, I am not sure of the 'overhead' associated with this method.  </p>
  
  <p>Any suggestions from the SO community?</p>
  
  <p>Thanks!</p>