Response.write(<script>window.open("要打开的url")</script>);

解决方案 »

  1.   

    不会啊我在我的机子上已经试过了这段代码是写在OnClick事件地下的:
    Response.Write("<script>window.open('Default.aspx');</script>");
    //注意 " 与 ' 的使用
    //Default.aspx跟这个请求发起页面在同一目录下
      

  2.   

    Response.Write("<script>window.open('http://localhost:3040/CSDN/Default.aspx')</script>");跳转到的url改为全路径试试
      

  3.   

    Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "aa", "window.open('xxx.aspx')", true);
    你试试这个!
      

  4.   

    <asp:button runat="server" ID="aa" onclientclick="window.open('newpage.aspx');return false" ></asp:button>