tryResponse.Write("<script>top.opener=null;top.close();</"+"script>")

解决方案 »

  1.   

    Me.RegisterStartupScript("pop", "<script>top.window.close();</script>")
      

  2.   

    <object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" VIEWASTEXT>
    </object>在 body 后边 加上上边的 对象执行下边的脚本 可以关闭框架
    document.all.WebBrowser.ExecWB(45,1)
      

  3.   

    top.window.close();
    是对的,关闭所有的窗口
      

  4.   

    Response.Write("<script>parent.document.window.close()"+"script>")