use showModalDialog("YourFile.aspx",null);

解决方案 »

  1.   

    vb: Msgbox("Come back",4096)
    js: CreatePopup().show(100,100,100,100)
      

  2.   

    谢谢!
    但如果我在打开的页面即你说的yourfile.aspx中加入server control 比如button时,但我点击button时他不是在这个modaldialog中执行事件,而是新建一个ie实例,在这个ie实例打开yourfile.aspx,并执行button,modaldialog还是再那。和打开时一个样,并没显示我要执行的事件。。
      

  3.   

    try to add this line in yourfile.aspx before <body> tag<base target="_self">
      

  4.   

    use frameset in showModalDialog 
    <html>
    <frameset rows="*">
    <frame src=yourfile.aspx>
    </frameset>
    </html>
      

  5.   

    谢谢指教,我已经调试成功了。
    还有一个小小问题请你们帮我以下。
    如果我用showmodaldialog时可以了,但他的父窗口在产生这个dialog时页面什么都不显示?能不能让他产生modaldialog父窗口不发生明显的变化??
      

  6.   

    >>>页面什么都不显示???where you are calling showModalDialog? you might want to make the window smaller:
    showModalDialog("yourfile.aspx",null,"dialogWidth:200px;dialogHeight:200px");
      

  7.   

    我提到的页面不显示不是子窗口即不是yourfile.aspx不显示,而是他的父窗口变成一片空白。如果关闭yourfile.aspx才能显示正常。