Click here to Skip to main content
15,749,066 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a LinkButton in my project, and I bind the websites of some colleges dynamically, links are integrated in SQL-Server. When I clicked on the LinkButton I'm getting link in the same page, but I want to display it in separate page or tab. How to do it?
plz Please give me suggesions.
Updated 18-Jun-16 23:14pm

Use Open method

For example:
<asp:linkbutton id="myLinkButton" runat="server" onclientclick="'');" ... />

If you want a perfect answer look at:
open method
Share this answer
Hope this should work.
<asp:LinkButton OnClientClick="'')" ID="linkbtnTest" runat="server" Text ="Visit Google" target="_blank"></asp:LinkButton>

In case if you want to assign the value of OnClientClick from server side please free to do that also.

Share this answer
André Kraak 31-Mar-12 8:01am    
Edited solution:
Corrected pre tags

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