Response.Redirect在新窗口打开链接地址

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"));
        }

你可能感兴趣的:(response)