I am implementing a search module with search engine support for the results page. The example provided by NerdDinner passes pagenumber as a parameter to the index action, and the action uses pagenumber to execute the query each time the user clicks a different page number.
My problem is that my search has much more criteria, such as price, material, model number, etc., and not just a simple pagenumber. Therefore, I would like to save the criteria after the first user submission, so I only need to pass pagenumber back and forth.
Using ViewData is not possible because ViewData is cleared after it is sent to the view.
Is there a good way to save the criteria data as I would like?
source
share