在CS中键入以下语句。
Response.Write("<script>window.showModalDialog('../MessageManager/InformationSend.aspx','','dialogHeight:280px;dialogWidth:750px;status:0;scroll:0')</script>");------------------------------------------
朋友又得麻烦你了:)
1.当弹出这个窗口时,父窗口变白屏,怎么不让它白屏。
2.在InformationSend.aspx这个页中有一个按钮,当单击这个按钮时又新弹出了一个窗口,请问怎样不弹出新窗口,
--------------------------------------------

解决方案 »

  1.   

    1,如何在模态对话框中进行提交而不新开窗口?
    如果你 的 浏览器是IE5.5+,可以在对话框中使用带name属性的iframe,提交时可以制定target为该iframe的name。对于IE4+,你可以用高度为0的frame来作:例子,test6.htm
    ===================
    <script>
    window.showModalDialog("test7.htm")
    </script>test7.htm
    ===================
    if(window.location.search) alert(window.location.search)
    <frameset rows="0,*">
    <frame src="about:blank">
    <frame src="test8.htm">
    </frameset>test8.htm
    ===================
    <form target="_self" method="get">
    <input name=txt value="test">
    <input type=submit>
    </form>
    <script>
    if(window.location.search) alert(window.location.search)
    </script>
      

  2.   

    asp.net中用模态,要用个中间框架才可以
      

  3.   

    问题1出现白页是因为你执行了服务器端代码,所以一定提交。
    问题2只要在你的模态页加上以下这句就不会弹出了
    <base target="_self">
      

  4.   


    加上 defer 就可以避免父窗体变白
    Response.Write("<script language=javascript defer>window.showModalDialog('../MessageManager/InformationSend.aspx','','dialogHeight:280px;dialogWidth:750px;status:0;scroll:0')</script>");
      

  5.   

    问题2 
    在你的模态页的 html 代码里面加上如下语句<base target="_self">
      

  6.   

    关闭模态窗口后刷新它的父窗体可以在showmodeldialog后加上
    document.location.reload();
      

  7.   

    弹出对话框用属性
    弹出页面设置tagert=_self
      

  8.   

    闭模态窗口后刷新它的父窗体可以在showmodeldialog后加上
    document.location.reload();但是怎样才能避免弹出那个提示窗口?
      

  9.   

    1.向窗体拖放Label控件,并将<asp:Label ……>标签放在</form>后面, 然后给Label.Text= “javascript脚本”
    2.在<base target="_self">
      

  10.   

    2.在<head>中添加<base target="_self">
      

  11.   

    http://dotnet.aspx.cc/ShowDetail.aspx?id=49ML4AO8-5PB3-4KNY-NJZD-LJOIOXV4M1X4