javascript| Function | cache | problem | show | page
When you use the JavaScript ShowModalDialog () function to display an ASPX page, there is a problem with caching, the first time you see the ShowModalDialog is normal content, and the second start to see the content of the page is the first time to see the content, That is, the page is directly from the cache, rather than to the server to fetch, and my program does not let this page forever cache
Two solutions:
Method One: First write an HTM page, inside nested a iframe,iframe src is aspx page, then ShowModalDialog () page is this HTM page, rather than the previous ASPX page, so there is no caching problem.
Method Two: Write a sentence in the Page_Load () of the aspx page response.expires =-1; This means that the page expires immediately, so there is no need to nest an HTM page.