Naresh
Naresh

Reputation: 657

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.

Upvotes: 0

Views: 3168

Answers (1)

Bhavik Goyal
Bhavik Goyal

Reputation: 2796

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

Add target='blank' in a tag

Upvotes: 1

Related Questions