On Jul 29, 8:02 am, bendlam <bend...@gmail. comwrote:
I have a page that contains search criteria and when you click on the
search button it causes a post back that populates a dataview on the
same page. One of the gridview columns contains a link that navigates
to a details page. When I try to go back to the search results page i
get "Page cannot be displayed" error. How do i go back to the search
results and have the search criteria and dataview unchanged?
i.e. The behaviour I'm looking for is as follows:
1. Search.aspx postback populates DataView.
2. Click on Details column takes you to Details.aspx
3. Hit back on browser or using a javascript link to go back would
return to the Search.aspx page with the user's search criteria and the
current DataView position.
Any help is much appreciated.
Thanks
Hi,
After Search when you navigate to detail page... if you hit browsers
back button you are suppose to get back to exactly in the same
position and if you click on another item it will work just fine...
because of pages viewstate... the state of the page will do just
fine... may be you are missing some thing... one more thing you can
also provide your user a option to navigate to search page from detail
page implemented all by yourself. in that case do save the search
criteria or search result in session when user search a new result
set... and when click on detail... take user to detail... in detail
page add some button or link which says "back to search page..." or
perhaps "close" after click on the button don't do any javascript
history back... just simple postback when in response.redire ct to your
search page... and repopulate the research result aswell as the search
criteria of the user...
Thanks
Md. Masudur Rahman (Munna)
Kaz Software Ltd.
www.kaz.com.bd http://munnacs.110mb.com