pass viewstate in querystring to create a 'back to results' page
Posted on 2008-10-16
I am creating an asp.net (linq to sql) app so user can search list of products by entering keyword. The product are diplayed as images in listview in an item results page. User can click on an image in the listview to get details about the product on a product page.
Whilst on this product page I want a "back to results" link so when user clicks this it return to the previous results page and page is populated using the original keyword search criteria.
So I want to do the following..
1. "Product" Results page is populated with data using "keyword"
2. Add this keyword to viewstate and pass it onto the "Product" page together with the id of the product via querystring.
3. On the product page - a "back to results" link that uses the viewstate to go back to the original search results page.
Ideally I want users to be able to bookmark the results page -