Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Response.CacheControl =
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00531340
Message ID:
00531475
Vues:
11
>Ok in order to stop a page from being cached I used Response.CacheControl = "no-cache". It works fine but when a user goes 'back' to the page it displays this message saying:
>
>Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.
>
>To resubmit your information and view this Web page, click the Refresh button.
>
>
>Is there any way I can just have the browser reload the page (with submitted values) without having to hit the refresh button?
>
>
>Thanks
>-Eric

Hi Eric,

Off the default browser back button event, no. You could either place your own back button on the page, remembering the previous page each time, and then just reload it, or you could do the sneaky thing and override the browser back button event with some java script. The latter may get you in trouble, as most users *hate* this behaviour.
Phil
_____________________________
Phil Miles
http://www.philmiles.com
phil@philmiles.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform