Today,
Copy codeThe Code is as follows:
Var frmHeight = 352;
Var frmWidth = 508;
Var frmTop = (window. screen. height-frmHeight)/2;
Var frmLeft = (window. screen. width-frmWidth/2 );
Var url = "ChosePerson. aspx ";
Var parameter = "dialogHeight:" + frmHeight + "px; dialogWidth:" + frmWidth + "px; dialogTop" + frmTop + "px; dialogLeft" + frmLeft + "px; scroll: 0; status: 0; reziable: 1 ;";
Var rval = window. showModalDialog (url, "", parameter );
Window. showModalDialog () // The page_load () method is used for the first loading. page_load () is not used for the second loading ();
Specific reasons:
It is a cache problem. After you open the window for the first time, the second time the browser did not retrieve data from the server, it directly found the file you have downloaded,
Final Solution:
1. Set browser Properties
Change the IE settings and try again. Internet Options-> General-> Settings-> check every time you access this page
(Advantages: Full-site reload, can solve the problem)
2. Add cache to clear the previous Cache
// Add cache to clear previous data to prevent page loading.
<% @ OutputCache Duration = "1" VaryByParam = "none" %>
(The advantage only applies to the required interface, saving time)
// Add
3. (IE7 does not support 7/10 cache formats during the 2nd test .)
Add in <META HTTP-EQUIV = "Pragma" CONTENT = "no-cache">
<META HTTP-EQUIV = "Cache-Control" CONTENT = "no-cache">
<META HTTP-EQUIV = "Expires" CONTENT = "0">