使用定位标记将页面打开到另一个窗口 [英] open page to another window using anchor tag

查看:107
本文介绍了使用定位标记将页面打开到另一个窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好


我正在使用定位标记在后面的代码中将页面打开到另一个窗口.
这是我的代码:

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;






我需要在后面的代码中将target ="blank"添加到我的锚标签中.请告诉






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

推荐答案

abusinessbroucher.Target="_blank";


您需要做的只是设置正确的导航链接.

在这里看看: MSDN:Window.Open方法 [ ^ ]

定义一个JS窗口.单击打开.
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.


这篇关于使用定位标记将页面打开到另一个窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆