在主页面上调用showModalDialog,打印模式窗体,在模式窗体中用parent引用主页面

解决方案 »

  1.   

    你是不是问?response的Clear和Flush方法?
      

  2.   

    http://community.csdn.net/Expert/topic/3855/3855004.xml?temp=6.527346E-02
      

  3.   

    parentpage:<script>
    var returnValue=showModalDialog('test.asp');
    if (returnValue)
    location.reload();
    </script>sonpage:
    <body onunload="parent.returnValue=true;">
      

  4.   

    以前再CSDN看到的代码,忘记是哪个大虾的了
      

  5.   

    在模式窗口的关闭按纽中写:
    window.dialogArguments.location.reload();
      

  6.   

    <script language=javascript>
    var str=window.showModalDialog('1.asp')
    if(str=="Y")
    location.reload()
    </script>
    在处理页面
    response.write "<script language=javascript>window.alert('操作成功!');window.close();window.returnValue='Y'</script>"