开发者

previous page won't expire

开发者 https://www.devze.com 2023-03-28 15:02 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消