如何在新标签页中打开 asp:HyperLink.NavigationUrl [英] How to open asp:HyperLink.NavigationUrl in a new tab

查看:12
本文介绍了如何在新标签页中打开 asp:HyperLink.NavigationUrl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在新标签页中打开 asp:HyperLink.NavigateUrl 而不改变当前的位置?

Is there a way to open an asp:HyperLink.NavigateUrl in a new tab and not change location of the current?

推荐答案

use <asp:HyperLink Target="_blank"/> 实际上取决于可能打开新窗口的用户设置.

use <asp:HyperLink Target="_blank" /> actually depending on the users settings that may open a new window.

这适用于 FF 和 Chrome 中的新标签页,似乎不适用于 IE (8),但这可能取决于文档类型.

This works for a new tab in FF and Chrome, doesn't seem to work in IE (8), but this may depend on the doctype.

这篇关于如何在新标签页中打开 asp:HyperLink.NavigationUrl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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