Subject: NOT ISPOSTBACK code runs when Back Button clicked
Posted By: Ron Howerton Post Date: 9/27/2006 5:18:57 PM
Code inside my NOT ISPOSTBACK logic fires when the user clicks the BACK button in the browser to return to a page.  As a result, database selection values are being reset.  Is there some way to identify when the user has returned to the previous page and avoid running this code so that the user's previous selections are still selected?
Reply By: BrianWren Reply Date: 9/28/2006 5:12:45 PM
I suppose you could keep track of pages visited in the Session (since it is user-specific), and store the state things were in either in a database, a file, or the Session.  Then if you see that the current page has been visited during the current Session, fill in the values from what you saved at that previous visit.

I suspect there's a better way.  <listening...>

Go to topic 50320

Return to index page 161
Return to index page 160
Return to index page 159
Return to index page 158
Return to index page 157
Return to index page 156
Return to index page 155
Return to index page 154
Return to index page 153
Return to index page 152