3月 12, 2014

開新視窗

 protected void btn_Click(object sender, EventArgs e)
    {
        string newWin =

        "window.open('pub.aspx');";

        ClientScript.RegisterStartupScript

            (this.GetType(), "pop", newWin, true);
        
    }

沒有留言: