load中加入下面属性:
protected void Page_Load(object sender, EventArgs e)
{
Button2.Attributes.Add("onclick", "this.form.target='_newName'");
}
按钮点击事件:
protected void Button2_Click(object sender, EventArgs e)
{
Response.Redirect(Server.MapPath("/Admin/Add.aspx"));
}