protected void Page_Load(object sender, EventArgs e)
{
this.Button1.Attributes.Add("onclick","this.form.target = '_blank'");
}
protected void Button1_Click(object sender, EventArgs e)
{
string url = "http://www.baidu.com";
this.Response.Redirect(url);
}
转载于:https://www.cnblogs.com/yanergui/p/5014283.html