Click here to Skip to main content
15,892,575 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi to all


i am using anchor tag to open my page to another window in code behind.
here is my code:

<a id="abusinessbroucher"    href="#" runat="server" title="Download PDF File" >Download PDF</a>


<pre lang="midl">string st = "../UploadBusinessBrochure/" + dt.Rows[0]["BusinessBrochure"].ToString();
                       abusinessbroucher.HRef = st;





i need to add target="blank" to my anchor tag in code behind.. how i do this; please tell
Posted

abusinessbroucher.Target="_blank";
 
Share this answer
 
All you need is to set correct navigation link.

Have a look here: MSDN: Window.Open method[^]

Define a JS window.open on the click.
 
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