问:
<script language="javascript">
function ChooseCustomer() {
var win=window.showModalDialog('Mat_Select.aspx','Dialog Arguments Value','dialogWidth:520px;dialogHeight:350px;dialogTop:200px;dialogLeft:300px;status:no;scroll:no;');
}
</script>
<input type="text" id="CustomerCode" runat="server" readonly="readonly" onclick="ChooseCustomer()" />我是JS里弹出一个窗体,同时传了一个随机数给子窗体,可是在第二次、的三次弹出子窗体的时候,子窗体的page-load()不执行呀!!!!搞不懂为什么?

解决方案 »

  1.   

    加上这个
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-store" />
    <meta http-equiv="Expires" content="0" />
      

  2.   

    window.showModalDialog('Mat_Select.aspx'
    你在这个后面加随机数就行了
      

  3.   

    var win=window.showModalDialog('Mat_Select.aspx?rand='+Math.random()....)url 加个随机参数
      

  4.   

    在<head></head>中加入
    <meta   http-equiv= "Expires "   content= "0 ">
    <meta   http-equiv= "Cache-Control "   content= "no-cache ">
    <meta   http-equiv= "Pragma "   content= "no-cache "> 清理缓存
    参考