Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 16, 2009 06:32 AM by rsanuj
Oct 30, 2007 02:25 PM|LINK
I am using vb.net 2.0. I am having issue in my application that if click on a link from the links page inside the application, it should open new browser (for IE 6 should be a new browser, for IE 7 should be a new tab) and not open that web page
inside the application.
Can anyone please give me reply. Its urgent in my application
Thanks In Advance
it should open new browser and not open that web page inside the application
click on link
Oct 30, 2007 02:41 PM|LINK
Set the target attribute of the <a> (anchors) to '_blank'
<a href="http://www.josephguadagno.net" target="_blank">http://www.josephguadagno.net</a>
Oct 30, 2007 02:43 PM|LINK
Joseph has given you the correct answer. However, it will always open in a new window, not a new tab. Tabs weren't invented when they decided in the html anchor specification.
Oct 30, 2007 02:58 PM|LINK
Thanks a lot for your quick response and its helped me a lot
Oct 30, 2007 03:00 PM|LINK
Jun 04, 2008 05:32 AM|LINK
I tried to implement this as a hyperlink within the gridview and it opened up my details.aspx page within the same tab as my original page, so it did not exactly work?
how do i get it to open in a new tab rather than the Tab i am in...if you get my meaning so that i can have the original grid in one tab and the details page in another tab?
thanks here is my code:
<asp:gridview ID="gvbooks" runat="server">
<asp:TemplateField ItemStyle- horizontalAlign="Center">
<a id="lnkDetails" runat="server" target="_blank">details</a>// i was using a link button before so now i switched to a hyperlink..line below
Apr 16, 2009 06:32 AM|LINK
You can aslo use below code: