Click here to Skip to main content
15,905,563 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,




when i click on the linkbutton the link should be open in new tab instead of new window,when i use firefox it working good it is opening in new tab but when i use chrome it is opening in new window,how to i fix it to open in new tab when i use chrome
Posted

I don't know what you have tried since you didn't post any code. However, you should use the Target attribute, it will open in a new window, or tab, depending on the browser setting.
<asp:hyperlink ...="" target="_blank" xmlns:asp="#unknown" />


Note that in Chrome the user can configure if they want links to open in new windows or new tabs.
 
Share this answer
 
v3
use <asp:hyperlink ...="" target="new" xmlns:asp="#unknown">
 
Share this answer
 

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