avoid caching of page in browser

Posted by Shan on Stack Overflow See other posts from Stack Overflow or by Shan
Published on 2012-11-13T02:02:20Z Indexed on 2012/11/14 5:00 UTC
Read the original article Hit count: 152

Filed under:
|
|

I am using an iframe to show the child pages.In that one one particular page contains hidden div and i am showing it as a pop-up like thing with javascript by changing the visibility of the hidden div.

Problem is before showing the hidden div , some manipulations are done at server level and I am calling the div from C# code after the manipulations like

Page.ClientScript.RegisterStartupScript(GetType(), "MyKey", "javascript:OpenModelPopup('cb','cs');", true);

so the page is getting posted back and the div is shown.

after this, after going to next page if i click browser back it shows that page with that hidden div and on next click of browser back gives the page without hidden div.

but I want to show only the initial stage of the page ie. without showing the hidden div that stage with hidden div should not be cached or it should not be shown on click of browser back.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about ASP.NET