我把一个网页转换成一个模式窗口,但弹出后,为什么父窗口就变成白色的了?
我不想他变成白色的,想他还是现实原来的内容 怎么办?
帮帮我 谢谢各位!

解决方案 »

  1.   

    这个是后台弹出代码:  this.Response.Write("<script>window.showModalDialog('ModelDialogLinkImg.aspx?ID=" + e.CommandArgument.ToString() + "',window,'help=no;dialogwidth=30;dialogheight=20;menu=no;resizeable=yes;scroll=yes;center=yes;edge=raise')</script>");
      

  2.   

    你是不是用response.write弹出父窗口的吧,应该用Page.ClientScript.RegisterStartupScript(thi.GetType(),"","<script></script>");这样吧
      

  3.   

    “白色”是指什么都不显示?还是和浏览器"No response"一样?
      

  4.   

     this.Response.Write("<script>window.showModalDialog('ModelDialogLinkImg.aspx?ID=" + e.CommandArgument.ToString() + "',window,'dialogwidth=30;dialogheight=20;menu=no;resizeable=yes;scroll=yes;)</script>");
    试试
      

  5.   

    可以用js实现
    JS打开一个新的页面:
    <input id="ButtonNewWin" type="button" value="Open a new window" onclick="openNewWin()" />
    <script type="text/javascript">
    function openNewWin()
    {
        window.open("NewPage.aspx","","width=200,height=200,toolbar=no,scrollbars=yes,menubar=no,top=300,left=600");
    }
    </script>
    锁住,不能操作父页面,除非子页面关闭。
    方法一:
    使用window.open打开,然后在<body>中<body onblur="self.focus()">
    方法二(不能刷新):
    <script type="text/javascript">
    function openNewWin()
    {  
        window.showModalDialog("NewPage.aspx","dialogHeight=200,dialogWidth=200,dialogLeft=600,dialogTop=300,resizable=no,status=no,scroll=yes");
    }
    </script>