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

posted @ 2011-01-12 15:28  Yao,Mane  阅读(343)  评论(0编辑  收藏  举报