Response.Write("<script>");
Response.Write("window.open('EditImg.aspx','','height=250,width=400,status=yes,menubar=no,location=no')");
Response.Write("</script>");

解决方案 »

  1.   

    在Page_Load里加上
    Button1.Attributes.Add("onclick","window.open('newForm.aspx');return false;");
    其实还是转弯子用js实现
      

  2.   

    Response.Write("<script>window.open('WebForm1.aspx','_blank')/script>")
      

  3.   

    对。最终是JS的实现。
    但是写成控件的形式,就可以把调用JS的细节屏蔽掉。
    那样调用起来更加像是服务器端的纯C#代码:
    http://expert.csdn.net/Expert/TopicView1.asp?id=1442542里面没有打开window的方法。可以根据里面的原理,自己做个。
      

  4.   

    谢谢各位了
    我用了guoadou的方法,可以了结贴