Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a menu bar. In that menu item have another website link. I want to display it in new window or new tab. Another thing is that I have a pdf file. I want to display it in another tab. Do you have the solution for this?
Posted
Updated 5-Sep-11 18:47pm
v2

method for this is give it as an anchor tag like this

<a href="yourdocument.pdf" target="_blank">click here for another page</a>
 
Share this answer
 
v2
Comments
Abhijit Jana 6-Sep-11 1:07am    
You can set it from menu item. This is true for render html not what you have in aspx page. or you need to change the content during rendering.
Yes, Menu item has a Property called Target. Set it to "_blank"
<asp:menuitem text="My Menu Item" value="My_Menu_Value" target="_blank" xmlns:asp="#unknown"></asp:menuitem>
 
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