March 23rd, 2004, 11:22 PM
To Refresh page on BROWSER's BACK Button
My web pages have a search page in which user need to fill the form and then next ASP page finds the required data and display it in the form of a table. Now when I get back to previous page by BROWSER's BACK button on left-top I will not get the fresh form and it shows the all radio buttons selected.This is not required.
Can it be possible for me to refresh this page when one goes to it by BROWSER's BACK button ?
March 24th, 2004, 11:12 AM
Yes and no.
And that's not the answer you hoped for, I'm sure
Yes: You can put the following tag in the header of your page(s)
meta http-equiv="pragma" content="no-cache"
This will tell the browser not to cache the page content and forces it to get the page from the given url.
No: Not all browsers comply to this option.
The browser back/forward/reload buttons all use the localy cached content if it is able to (good for speed and lessens traffic on the net). The no-cache option is html 4.01 legal (probably before 4 too) and created for those situations that the browser should not use it's local cache.
All browsers should comply, but as I stated before, some don't.
I know this isn't the sollution you are looking for, but as far as I know you cannot tackle this problem with 100% guarantee.
March 24th, 2004, 11:31 PM
Thanks a lot for your efforts
This way also I can solve my problem .
My page has 6 radio buttons in the group of two.
Now I want to keep only one ticked in each group.
This I did on window_onload() function. But it doesn't work
when I browse back from the next page.Can it be possible to
make a constraint on each group which keep only one
radio button selected all the time even if page is displayed
after browseing back ?
March 25th, 2004, 09:11 AM
Like I said before, the client (browser) decides how it is done. There is no solution that will work for all browsers.
June 15th, 2011, 07:23 AM
page refresh on browser back button
Below code snippet takes you to previous page after refresh, works in Mozilla also:
Originally Posted by sach_del