Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
I am working on a web site. i have an india page and i have menu for the same. i want to open all my menu web links targeted to new window. i mean when i am accessing india page my all menu links targeted to new window. That means other than india page i should targeted to same window.

i need help. how it is possible?

Any kind of link, suggestion and specially expert advice would be highly appreciated.


Thanks & Regards,
Balkrishna Raut
Posted

hi,
use the server side control for the navigatino i.e. hyperlink. and in code check the value is India or not if the value is India then assign the target runtime.
suppose the code is
<asp:hyperlink id="abc" ....="" xmlns:asp="#unknown">
then in code
abc.target="_Blank";

else
abc.target="_self";
 
Share this answer
 
 
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