在不同的浏览器中打开一个窗口 [英] opening a window in a different browser

查看:101
本文介绍了在不同的浏览器中打开一个窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



asp.net 2.0,ie6,opera 9.22

出于各种支持性原因,我们需要将页面重定向到网址和

要求目标URL应在Opera浏览器中打开。电话是

简单


Response.Redirect(网址,真实);


如果它的工作正常所有的IE环境。但我想知道如何指定

新窗口应该在Opera中打开。任何页面指令或

什么?


问候,

阿里

解决方案

基本上我的想法是在特定的浏览器中打开Web应用程序

然后整个应用程序将显示在这个浏览器中。


你可能想解释一下你想要做什么,但是如果你想在另一个浏览器中从特定的浏览器IMO打开一个

页面,这是不可能的

(加上它可能会导致会话等问题...)


你可能想解释一下你想要做什么......


---

Patrice


" Ali Shahzad" < Al ******** @discussion.microsoft.comaécritdansle message

de news: 31 ******************* ***************@microsoft.com ...




asp.net 2.0,ie6,opera 9.22

出于各种支持性原因,我们需要将页面重定向到网址



要求目标网址应在Opera浏览器中打开。电话是

简单


Response.Redirect(网址,真实);


如果它的工作正常所有的IE环境。但我想知道我怎么能指定

新窗口应该在Opera中打开。任何页面指令或

的东西?


问候,

阿里



确定。问题基本上始于打印和打印预览

功能。 w3c指定page-break-after:避免和

page-break-inside:避免。这对我们来说非常方便,因为我们必须从我们的页面生成

pdf,并且可能还需要打印输出。 Unfortunatley ie6没有
支持''避免''规范!另一方面,Opera完全支持两者。我们现在可以选择完全切换到Opera或者在Opera中打开1

(我们的自定义预览页面)。整个应用程序工作得很好

IE6。整个应用程序是使用asp.net构建的,并在

infopath表单中作为获取窗格放置。所以我只是喜欢一般它仍然应该使用IE浏览器,但是当我们需要预览页面时它们是b / b,然后它会在Opera窗口中弹出,并且因此允许
我们得到一个不错的打印预览


Ali


" Patrice"写道:


基本上我的想法是在特定的浏览器中打开Web应用程序

然后整个应用程序将显示在这个浏览器中。


你可能想解释一下你想要做什么,但是如果你想在另一个浏览器中从特定的浏览器中打开一个

页面IMO是不是没有赌注

(加上它可能会导致诸如会议等问题......)


你可能想解释一下你是什么试图做...


---

Patrice


" Ali Shahzad" < Al ******** @ discussion.microsoft.coma ?? crit dans le message

de news: 31 ***************** *****************@microsoft.com ...




asp.net 2.0,ie6,opera 9.22

出于各种支持性原因,我们需要将页面重定向到网址



要求目标网址应在Opera浏览器中打开。电话是

简单


Response.Redirect(网址,真实);


如果它的工作正常所有的IE环境。但我想知道我怎么能指定

新窗口应该在Opera中打开。任何页面指令或

的东西?


问候,

阿里




你必须改变转到你要重定向的页面的链接

,这样页面就会以新的方式打开窗口。


< a href =" MyRedirectingPage.aspx" target =" _blank">


" Ali Shahzad" < Al ******** @ discussion.microsoft.com写信息

news:31 ******************** ************** @ microsof t.com ...




asp。 net 2.0,ie6,opera 9.22

出于各种可支持性原因,我们需要将页面重定向到URL



要求目标网址应在Opera浏览器中打开。电话是

简单


Response.Redirect(网址,真实);


如果它的工作正常所有的IE环境。但我想知道我怎么能指定

新窗口应该在Opera中打开。任何页面指令或

什么?


问候,

阿里



Hi,
asp.net 2.0, ie6, opera 9.22

For various supportability reasons, we need to redirect a page to a url and
require that the target url should open in an Opera browser. The call is
simple

Response.Redirect(url, true);

It works fine if its all IE environment. but am wondering how can i specify
that the new window should open in Opera instead. Any page directives or
something?

regards,
Ali

解决方案

Basically the idea is to open the web application in a particular browser
and then the whole application will be shown inside this browser.

You may want to explain what you are trying to do but if you want to open a
page in a another browser from a particular browser IMO this is not posisble
(plus it''s likely it will cause problems such as sessions etc...)

You may want to explain what you are trying to do...

---
Patrice

"Ali Shahzad" <Al********@discussions.microsoft.coma écrit dans le message
de news: 31**********************************@microsoft.com...

Hi,
asp.net 2.0, ie6, opera 9.22

For various supportability reasons, we need to redirect a page to a url
and
require that the target url should open in an Opera browser. The call is
simple

Response.Redirect(url, true);

It works fine if its all IE environment. but am wondering how can i
specify
that the new window should open in Opera instead. Any page directives or
something?

regards,
Ali



sure. The problem basically started with print and print preview
functionalities. w3c specifies page-break-after:avoid and
page-break-inside:avoid. this was very handy for us since we have to generate
pdfs from our pages and may also want printouts. Unfortunatley ie6 doesnt
support the ''avoid'' spec! Opera on the other hand perfectly supports both. We
now have the option to either completely switch to Opera or to open just 1
(our custom preview page) in Opera. The overall app is working just fine with
IE6. the whole app is built with asp.net and is placed as a take pane in an
infopath form. So i just prefer that in general it should still use IE, but
when we need to preview the page, then it pops up in an Opera window, and
hence allowing us to get a nice print preview

Ali

"Patrice" wrote:

Basically the idea is to open the web application in a particular browser
and then the whole application will be shown inside this browser.

You may want to explain what you are trying to do but if you want to open a
page in a another browser from a particular browser IMO this is not posisble
(plus it''s likely it will cause problems such as sessions etc...)

You may want to explain what you are trying to do...

---
Patrice

"Ali Shahzad" <Al********@discussions.microsoft.coma ??crit dans le message
de news: 31**********************************@microsoft.com...

Hi,
asp.net 2.0, ie6, opera 9.22

For various supportability reasons, we need to redirect a page to a url
and
require that the target url should open in an Opera browser. The call is
simple

Response.Redirect(url, true);

It works fine if its all IE environment. but am wondering how can i
specify
that the new window should open in Opera instead. Any page directives or
something?

regards,
Ali




You have to alter the link that goes to the page you are redirecting from
such that the page is opened in a new window.

<a href="MyRedirectingPage.aspx" target="_blank">

"Ali Shahzad" <Al********@discussions.microsoft.comwrote in message
news:31**********************************@microsof t.com...

Hi,
asp.net 2.0, ie6, opera 9.22

For various supportability reasons, we need to redirect a page to a url
and
require that the target url should open in an Opera browser. The call is
simple

Response.Redirect(url, true);

It works fine if its all IE environment. but am wondering how can i
specify
that the new window should open in Opera instead. Any page directives or
something?

regards,
Ali



这篇关于在不同的浏览器中打开一个窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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