简体   繁体   中英

Opening a aspx page in new tab on clicking Hyperlink

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

I have above line in my code which is redirecting my page to view5.aspx. But I want to open the view5.aspx in new tab how can I do that.

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

Add target='blank' in a tag

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM