Click here to Skip to main content
15,907,687 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
C#
<asp:TemplateField HeaderText="URL">
<itemtemplate>
<asp:HyperLink ID="hlUrl" runat="server" NavigateUrl='<%#(DataBinder.Eval(Container, "DataItem.URL")).ToString().Replace(",",",<br />,") %>'
ForeColor="blue" Target="_blank" Visible="false" 
Text='<%# (DataBinder.Eval(Container, "DataItem.URL")).ToString().Replace(",",",<br />,") %>'>

</itemtemplate>


i need to open this attachment in new tab,attachment contain jpg/jpeg images which are saved in root folder.

after clickin on link its opening in same window i need to open it in new tab.
please help.
Posted
Updated 6-Jan-15 19:33pm
v2

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900