473,320 Members | 2,073 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.

Popups not working, even if Popups are allowed in IE

Using : ASP.NET 2.0, IE 7.

This is a strange problem with popups not working in IE to remote sites,
even though popups are allowed in IE.

To reproduce, create web site with two pages, Default.aspx and
Default2.aspx. Note that the example is a deliberately simplified example -
just used to reproduce the problem, and not meant to be very useful.

Default.aspx - add button1. In codebehind, hookup click event :
==
protected void Button1_Click(object sender, EventArgs e)
{
string scriptText = "window.open('Default2.aspx','', '');";

ClientScript.RegisterStartupScript(GetType(), "MyKey", scriptText,
true);
}
==

In Default2.aspx codebehind, add :
==
protected void Page_Load(object sender, EventArgs e)
{
Response.Clear();
Response.ContentType = "text/plain";

Response.AddHeader("Content-Disposition", "attachment; filename=" +
"Report.txt");

Response.Write("hello world");
Response.Flush();
Response.End();
}
==

Browse to Default.aspx, then click button1. The intended behaviour is for a
dialog box to come up, with something like : "Do you want to open or save
this file ?". Then the user can view or save this file. This all works fine
when the browser and web site are all on the same PC. Popups are enabled in
IE. (Note that I'm using IIS to the run the pages from outside the Visual
Studio IDE).

However, when browsing to a remote site hosting these pages over the
internet, even though popups are allowed for this site in IE, the dialog box
never comes up, and the user never gets a chance to see the file. If I hold
down the CTRL key (to disable popups for the request), then press button 1,
then things work. But I don't understand why the CTRL key needs to be
pressed in IE when popups are disabled.

Using Firefox 2, things work ok.

Has anyone seen this ? Any ideas ?
TIA,
Moe


Aug 4 '08 #1
1 2304
You might have more than one PopUp killer in IE.

IE has one, then any toolbar like Google toolbar, Yahoo toolbar.... might
have another one...

George.

"Moe Sisko" <nullwrote in message
news:OV**************@TK2MSFTNGP05.phx.gbl...
Using : ASP.NET 2.0, IE 7.

This is a strange problem with popups not working in IE to remote sites,
even though popups are allowed in IE.

To reproduce, create web site with two pages, Default.aspx and
Default2.aspx. Note that the example is a deliberately simplified
example - just used to reproduce the problem, and not meant to be very
useful.

Default.aspx - add button1. In codebehind, hookup click event :
==
protected void Button1_Click(object sender, EventArgs e)
{
string scriptText = "window.open('Default2.aspx','', '');";

ClientScript.RegisterStartupScript(GetType(), "MyKey", scriptText,
true);
}
==

In Default2.aspx codebehind, add :
==
protected void Page_Load(object sender, EventArgs e)
{
Response.Clear();
Response.ContentType = "text/plain";

Response.AddHeader("Content-Disposition", "attachment; filename=" +
"Report.txt");

Response.Write("hello world");
Response.Flush();
Response.End();
}
==

Browse to Default.aspx, then click button1. The intended behaviour is for
a dialog box to come up, with something like : "Do you want to open or
save this file ?". Then the user can view or save this file. This all
works fine when the browser and web site are all on the same PC. Popups
are enabled in IE. (Note that I'm using IIS to the run the pages from
outside the Visual Studio IDE).

However, when browsing to a remote site hosting these pages over the
internet, even though popups are allowed for this site in IE, the dialog
box never comes up, and the user never gets a chance to see the file. If
I hold down the CTRL key (to disable popups for the request), then press
button 1, then things work. But I don't understand why the CTRL key needs
to be pressed in IE when popups are disabled.

Using Firefox 2, things work ok.

Has anyone seen this ? Any ideas ?
TIA,
Moe




Aug 4 '08 #2

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

Similar topics

3
by: Art | last post by:
NEWBIE ALERT! Esteemed List Participants and Lurkers: (System: P-II 350, 192 meg, Win98 SE, Python 2.2.3, wxPythonWIN32-2.4.1.2-Py22.exe) I'm having a lot of fun getting started with Python...
52
by: Harlan Messinger | last post by:
Can you help me figure out what to do about popups? Sometimes we develop web applications where popups make very good sense for precisely the same reasons they make sense in traditional...
1
by: Logger | last post by:
Help! I’m trying to get popups to work in asp.net. I’m Using the following javascript code in a sub, but I can’t get the PopupWindow to work. At first I thought the routine wasn’t...
1
by: dejausenet | last post by:
I have firefox 1.0, running on winxp Firefox blocks popups fine, but sometimes, for selected occassions only, i would like to be able to have window popup; without enabling whole domains, as...
1
by: Roman Roelofsen | last post by:
> Evening, > > Is there a decent way to get that help into vim? Or like showing docstrings > or help that I get through pydoc on request? I've been working myself > through a pile of vim...
0
by: heathy | last post by:
A puzzle... hmmm, we have firewall software on our laptops so that when the laptop is in 'remote mode', i.e. out of the office, internet explorer is only allowed to go to our company remote...
4
by: ciprian.dosoftei | last post by:
Hello, I just finished a tutorial website regarding the development of DHTML popups. The site features several examples with downloadable samples. It also feature more complex effects like...
4
by: Christina | last post by:
A project I am working on requires 5 random popup windows that rotate. A cookie is set each time one of the popups occurs with a 5 day expire period. The visitor isn't supposed to see the same...
3
by: Raffi | last post by:
Hello, I've been struggling and trying to work around this for a while and have even posted on usenet in the past without any working solutions. I'm posting it again in case someone out there...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.