previous page won't expire
I have a page that has two 'pages' within. Basically it's two DIVs - one is hidden at all times, and it is toggled dependent on a Radio button.
One of these DIVs contains a form which you can submit. I want this whole page, especially that form, refreshed when the user clicks 'back'.
I have tried numerous things, and none of them have work开发者_如何学JAVAed. Maybe they are in the wrong place?
I currently tried this:
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
<% Response.Cache.SetCacheability(HttpCacheability.NoCache); %>
<%: Response.Expires = -1; %>
It still doesn't work. Help?
Since the back button doesn't "reload" the page, this is the problem you are seeing.
You could add a "back button" or "link" which when clicked would obviously reload the page.
Also, look into the javascript onload event. You might be able to clear the form using that.
精彩评论