我想在一个A页面打开一另一个B页面,并且此时A页面不可用,只有当B页面关闭后A页面才可用(类似于对话框页面),我用了如下代码:
Response.Write("<script>window.showModalDialog('B.aspx')</script>");可以实现我的效果,但是A页面却变成了空白,太不专业了,请问有没有更好的办法??

解决方案 »

  1.   

    Page.ClientScript.RegisterStartupScript(GetType(), "", "<script type='text/javascript'>window.showModalDialog('B.aspx')</script>");
      

  2.   

    window.showModalDialog("Default1.aspx","","status=no;dialogWidth=480px;dialogHeight=400px;menu=no;resizeable=yes;scroll=yes;center=yes;edge=raise;");
      应该不会出现那种情况 了  试下
      

  3.   

    js模拟弹出窗口,加遮罩层搜下:lhgdialog
      

  4.   

    ClientScript.RegisterStartupScript(this.GetType(), "", "<script type='text/javascript'>window.showModalDialog('B.aspx');</script>");
      

  5.   

    我试了zlj002兄的代码,完全OK,谢谢!!