请问在.net中怎么控制浏览器窗口的大小?

解决方案 »

  1.   

    <html>
    <head>
    <OBJECT id=closes type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11" VIEWASTEXT>
    <name="Command" value="Close"></name> 
    </OBJECT>
    </head>
    <body onload="javascript:windopenlogo()">
    <script language="javascript">
    function windopenlogo()
    {
    window.open("subindex.aspx","logo","top=0,left=0,toolbar=no,location=no, directories=no,status=no,menubar=no,scrollbars=no,resizable=yes, width="+(screen.width-10)+",height="+(screen.availheight-30));
    window.opener = null;
    window.close();
    }
    </script>
    </body>
    </html>
      

  2.   

    string sURL = "InDepotDetail.aspx?InDepotID=0";
    string js = "<script>window.open('"+sURL+"','','left=80,top=120,resizable=no,height=320,width=700,menubar=yes,scrollbars=yes,');</script>";
    Response.Write(js);
      

  3.   

    我不是用JAVA实现,而是要用C#来实现
      

  4.   

    是这样的,比如我点击一个按钮打开一个新网页,但我要求新网页的是固定大小的,比如新网页的宽200,高300,我是用的.NET,C#语言,请问怎么实现?