单击“超链接”,在新选项卡中打开aspx页面

时间:2011-05-24 05:34:14

标签: c# asp.net redirect hyperlink

   Response.Write("<td><a href= view5.aspx?file=" + strheadlinesid + "\\" + FI.Name + "> " +
            FI.Name + "</a></td>");

我的代码中有以上行,它将我的页面重定向到view5.aspx。但我想在新标签中打开view5.aspx我该怎么做。

1 个答案:

答案 0 :(得分:1)

Response.Write("<td><a target='blank' href= view5.aspx?file=" + strheadlinesid + "\\" + FI.Name + "> " +
            FI.Name + "</a></td>");

在标记中添加target ='blank'