Response.Write("<input type=\"button\" value=\"Open\" onclick='window.open(\"http://www.csdn.net\", \"_blank\", \"width=400,height=300,toolbars=no\");'>");   

解决方案 »

  1.   

    Page.RegisterStartupScript("a","<script>window.open(\"http://www.csdn.net\",\"_blank\",\"width=400,height=300,toolbars=no\")</script>");
      

  2.   

    botton.Attribute="写上你的客户端代码就可以了"
      

  3.   

    试了一下,用Response.Write写,一按按钮,窗口会出现两次。用Page. RegisterStartupScript就OK。谢谢!
    但是还是想问一下,有没有不写脚本的方法。
    比如就是page.functionname("http://www.csdn.net","_blank","width=400,height=300,toolbars=no");形式的函数。