Hi I have a simple search page and search results page. The search page includes a number of drop down menu's and calendar controls.
When I click the search button the page redirects to the search results page which displays a gridview. If the user hits the browser back button
they get the web page expired page. I have managed to stop the page from expiring after clicking the browser back button by doing two things:
1. Firstly I replaced ajax calendar extenders with basic calendar controls that does not have a post back
2. When the user clicks the search button I have a function that checks to see if any rows exist for the search query:
I have removed this now from the search page and instead just use the emptyitem template for the gridview on the search results page: This is the code I was using:
Public Function GetCountNumOfRows() As Integer
Dim myReader As IDataReader
Dim x As Integer
...
Go to the complete details ...