asp.net C#点击button 弹出一个新窗体

2025-04-03 20:03:55
推荐回答(2个)
回答1:

    protected void Button1_Click(object sender, EventArgs e)
    {
        var script=@"
        
            window.open('Default.aspx') 
             
        ";
        ClientScript.RegisterClientScriptBlock(this.GetType(), string.Empty, script);
    }

回答2:






HTML







关闭

内容