问题描述
我开发用C#,ASPNET 3.5和Ajax 2.0的Web应用程序。
I am developing web applications with c#, Aspnet 3.5, and Ajax 2.0.
问题 - 我在IE7运行Application_1。我想以编程方式启动从Application_1在新标签运行Application_2,无论客户端设置是什么。
Question - I run Application_1 in ie7. I would like to programmatically start running Application_2 from Application_1 in a new tab, no matter what the client settings are.
到现在为止,我一直在一个新的窗口,从Application_1使用打开Application_2
Until now I have been opening Application_2 in a new window from Application_1 using
ScriptManager.RegisterStartupScript(this, typeof(Page), UniqueID, "window.open('theurl',' width=800, height=500'); ", true);
我愿做类似打开一个新标签的东西。
I would like to do something similar to open a new tab.
推荐答案
不幸的是没有办法控制的窗口是否在新标签或新窗口中打开。这是一个无法在code覆盖用户设置。
Unfortunately there is no way to control whether the window opens in a new tab or new window. This is a user setting that can't be overridden in code.
这篇关于编程方式打开IE7中的一个新标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!