response.write("<script>window.open('url',.....)</script>")
这样写就可以了。

解决方案 »

  1.   

    Response.Write("<script>window.open('url','','width=200,height=200,menubar=0,toolbar=0')</script>");
      

  2.   

    Page.RegisterClientScriptBlock("","<script>window.open('test.htm','','toolbar=no,location=no,directories=no,scrollbars=no,width=400,height=400,left=0,top=0,resizable=yes')</script>");
      

  3.   

    test.aspx?param1=...&param2=...
    调用的时候就用Request.param[param1]
      

  4.   

    string ss="tt";
    Response.Write("<script language='javascript'>window.open('WebForm8.aspx?id='+'"+ss+"','newwin','width=711','height=486','top=160','left=350')</script>");
      

  5.   

    看看这个:你还可以定义要打开窗口的内容
    第一步:把如下代码加入<head>区域中
    <script language="JavaScript"> 
    <!-- 
    function win() {
    var h= document.winfrm.hig.value
    var w= document.winfrm.wid.value
    testWindow=window.open("about:blank",'testwin','toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,resizable=no,width=' + w + ',height=' + h +'');
    testWindow.document.writeln("<head><title>测试窗口</title></head>");
    testWindow.document.writeln("<body bgcolor=#ffffcc>");
    testWindow.document.writeln("该窗口已经按照你要求的大小打开了!<p>");
    testWindow.document.writeln("如何使用就在于你的创意了!</body>");
    testWindow.document.writeln('');
    }
    // --> 
    </script>第二步:把如下代码加入<body>区域中
    <form name="winfrm">
    窗口宽度: 
    <input type="text" name="wid" maxlength="3">
    <br>
    窗口高度: 
    <input type="text" name="hig" maxlength="3">
    <br>
    <input type="button" name="s" value="开始测试" onClick="win()" class="yk9">
    </form>