string s="newliuyan.aspx?hy="+hy+"&user="+Session["user"].ToString ();
Response.Write("<script language=javascript>window.open('"+s+"','_blank','left=250,top=200,width=300,height=320');</script>");

解决方案 »

  1.   

    你得服务器支持.net吗?
    你点击以后看看网页的html代码开头是不是有
    <script language='javascript'>window.open('newliuyan.aspx?....','_blank','left=250,top=200,width=300,height=320');</script>");</script>
      

  2.   

    先alert一把,看看有没有反应,如果无反应就不是代码的事了
      

  3.   

    是不是丢事件了?看看InitializeComponent()中是不是有这么一行this.youbutton.Click += new System.EventHandler(this.youbutton_Click);
      

  4.   

    在服务器端把s打印出来:Response.Write(s);不会是弹出窗口被拦截了吧?
      

  5.   

    改成string s="newliuyan.aspx?hy="+hy+"&user="+Session["user"].ToString ();
    Response.Write("<script language=javascript>window.open('"+s+"','_blank','left=250,top=200,width=300,height=320');<"+"/script>");