473,320 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

opening a window in a different browser

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
Jul 30 '07 #1
12 2060
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

Jul 30 '07 #2
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


Jul 30 '07 #3
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

Jul 30 '07 #4
"Aidy" <ai**@xxnoemailxx.comwrote in message
news:kr*********************@bt.com...
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">
That won't help in this case...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 30 '07 #5
yup. I believe that will open a new window but in IE and not in Opera! Any
suggestions to how i can open the window in Opera?

"Mark Rae [MVP]" wrote:
"Aidy" <ai**@xxnoemailxx.comwrote in message
news:kr*********************@bt.com...
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">

That won't help in this case...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 30 '07 #6
* Ali Shahzad wrote, On 30-7-2007 15:36:
yup. I believe that will open a new window but in IE and not in Opera! Any
suggestions to how i can open the window in Opera?
Firefox registers a special protocol handler called firefox://. Firefox
supports your page-break:avoid rule. You could create a link which
begins with that. But I'd strongly advise against it, with all the
security issues that are being caused by this protocol.

I'm not sure if Opera supports a similar protocol handler. A quick
Google search for opera:// didn't help.

Jesse
>"Aidy" <ai**@xxnoemailxx.comwrote in message
news:kr*********************@bt.com...
>>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">
That won't help in this case...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 30 '07 #7
"Ali Shahzad" <Al********@discussions.microsoft.comwrote in message
news:58**********************************@microsof t.com...
yup. I believe that will open a new window but in IE and not in Opera!
Correct.
Any suggestions to how i can open the window in Opera?
Not without some sort of client-side ActiveX control - I'd forget it if I
were you...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 30 '07 #8
Humm...

My personal preference would be likely to avoid such a workaround. If the
app is cross browsers I would use Opera at least when printing is needed.
You could also see if this is solved in IE7 or if IE6 offers something
similar but different (and posisbkly detect IE and ask to use Opera for
printing as a workaround).

You could also consider create directly PDF files (likely a bit late at this
step as you already chosen the HTML route).

Note also that if the page opens in another browser the session is not
maintained. This could perhaps also cause for the workaround you are
trying...

--
Patrice

"Ali Shahzad" <Al********@discussions.microsoft.coma écrit dans le message
de news: 23**********************************@microsoft.com...
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



Jul 30 '07 #9
I dont know exactly how to do what you ask.
But I have an idea.
You use javascript to run an external program.
Just hope the antivirus software wont think it's
a virus.

"Ali Shahzad" <Al********@discussions.microsoft.comдÈëÏûÏ¢ÐÂÎÅ: 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

Jul 30 '07 #10
"chenhong" <ch******@sinap.ac.cnwrote in message
news:um**************@TK2MSFTNGP06.phx.gbl...
You use javascript to run an external program.
That would require a fairly hefty lowering of security, and would be no use
at all on the public Internet...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 30 '07 #11
hi,
but this can be a viable option, since we are running the application on
intranet. What do you guys recommend:
1) using clients side scripting (javascript) to open a new opera window, or
2) server side API? since we are already doing response.redirect in
code-behind.

am actually not too sure how 2) will work, since calling an external app on
server side might just do nothin on the client side! or?
In either case, please send me some code snippets if you have/ small enough
to write.

and thanks a lot for your responses
Ali

"Mark Rae [MVP]" wrote:
"chenhong" <ch******@sinap.ac.cnwrote in message
news:um**************@TK2MSFTNGP06.phx.gbl...
You use javascript to run an external program.

That would require a fairly hefty lowering of security, and would be no use
at all on the public Internet...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 30 '07 #12
"Ali Shahzad" <Al********@discussions.microsoft.comwrote in message
news:CB**********************************@microsof t.com...
but this can be a viable option, since we are running the application on
intranet.
Personally, I wouldn't even consider it because of all the additional work
it will entail...
What do you guys recommend:
Don't even try to do it...
am actually not too sure how 2) will work
It won't...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 30 '07 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jawahar Rajan | last post by:
All, I have a printer friendly page that is opened when a user clicks a link on my page to get the printer friendly version, How ever when they close out the printer friendly version and return to...
3
by: Clinton Goff | last post by:
I am attempting to write a javascript app that will open a second browser window, load a url, such as www.google.com (foreign url) and perform a <File-Save As> function on that window. I am able...
4
by: zach | last post by:
Hi My problem is that on some sites when I click on a picture (for example) that is supposed to open in a new window it doesn't. The bottom left of my browser where it tells what is happening...
6
by: Tony G. | last post by:
Hi there, I have an APS 3 application, running on a Windows 2003 Web edition server - it is a very busy website, and when users are click on certain links (membership info), a new window i...
44
by: Carlos Andr?s | last post by:
Hi everybody. I've got a problem. I'd like to avoid opening a new window when you have pressed the shift key and you click in the left button of the mouse. I've tried the next solution, in the...
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
10
by: santiago538 | last post by:
Hi, Is there any way to specify which monitor a Window.open() will launch a new browser window in on systems with more than one display. It would only need to work with Mozilla browsers, and not...
2
by: Matt Hamilton | last post by:
I have an application page with a datagrid with a checkbox on each row. The user should check the rows they want to modify and then click a button. When the button is clicked, I have a Click...
3
by: Larry Bud | last post by:
Wanting to use a technology I saw for one of our apps. We have several apps that a user logs in at on the same page. The app is determined by a drop down. User credentials are checked,...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.