如何在新窗口中显示内容 [英] How to display the content in new window

查看:67
本文介绍了如何在新窗口中显示内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个菜单栏.在该菜单项中有另一个网站链接.我想在新窗口或新选项卡中显示它.另一件事是我有一个pdf文件.我想在另一个标签中显示它.

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?

推荐答案

方法,为此,将其作为锚定标签提供给这样的方法

< a href ="yourdocument.pdf" target ="_ blank">在此处单击另一页
method for this is give it as an anchor tag like this

<a href="yourdocument.pdf" target="_blank">click here for another page</a>


是的,菜单项具有名为Target的属性.将其设置为"_ blank"
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>


引用此链接

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.menu.target.aspx [
Refer this link

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.menu.target.aspx[^]


这篇关于如何在新窗口中显示内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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