Can this also be done for a Link button within a grid view? i.e something like this to open in a new tab rather than a new window...i tried this and it returned a new window instead of a new tab!!
i also tried changing the target to "_new" still no luck and i am uisng IE7 browser..any suggestions please?
ShadowOfTheB...
Member
130 Points
68 Posts
Re: make hyperlink open in new tab
Jun 04, 2008 04:34 AM|LINK
Hi All,
Can this also be done for a Link button within a grid view? i.e something like this to open in a new tab rather than a new window...i tried this and it returned a new window instead of a new tab!!
i also tried changing the target to "_new" still no luck and i am uisng IE7 browser..any suggestions please?
<asp:gridview ID="gvbooks" runat="server">
<Columns>
<asp:TemplateField ItemStyle- horizontalAlign="Center">
<ItemTemplate>
<a id="lnkDetails" runat="server" target="_blank">details</a>
</ItemTemplate>
<asp:TemplateField>
</Columns>
</asp:gridview >
William shakespeare, Hamlet