473,700 Members | 2,859 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(o bject sender, EventArgs e)
{
string scriptText = "window.open('D efault2.aspx',' ', '');";

ClientScript.Re gisterStartupSc ript(GetType(), "MyKey", scriptText,
true);
}
==

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

Response.AddHea der("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 2348
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******** ******@TK2MSFTN GP05.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(o bject sender, EventArgs e)
{
string scriptText = "window.open('D efault2.aspx',' ', '');";

ClientScript.Re gisterStartupSc ript(GetType(), "MyKey", scriptText,
true);
}
==

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

Response.AddHea der("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
2870
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 ... it is the most elegant and graceful language I have ever used (Fortran, Cobol, Basic, many assemblers, Forth, C, VB, etc.). I don't have the resources or the
52
4413
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 locally-installed application interfaces. I understand some people object, on grounds having nothing to do with disabilities, to links that generate new browser windows. I don't know what the basis of their objection is, but I wonder whether the same...
1
409
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 working but it is. It looks like it’s the window.open that’s not working. I have site popup allowed turned on, if I replace window.open with alert it works, if I put the code in the html code it works. Any suggestions? Dim PopupScript As String...
1
2352
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 other popups from same domain are not desired. How can I selectively override the firefox popup blocker, without opening up pop up from many ads from same domain. Tx
1
1570
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 macros/plugins but couldn't find even one which > simplifies programming in Python. Further issues would be handling the Hi Christoph, Hi Vim users,
0
1140
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 working site, and not browse the internet at will... this is fine except when they are at a wireless hotspot etc. where a the browser is redirected to a payment screen (which is then blocked by the firewall). My solution to this was to write an...
4
1520
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 drop-down popups, fade in/out, slide in etc. The URL is: http://dhtmlpopups.webarticles.org/ I hope you will find the information useful. Any feedback is welcomed
4
2354
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 popup within that 5 day period, so it needs to rotate to another popup. I have changed it around several times (setCookie calls randomWin and vice versa) but now have brain burnout. I'm probably complicating it - a bad habit I have. My randoms...
3
4376
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 has a solution. I'm working on a web application with an i-frame in the main application window. Inside the i-frame are various dynamic links for opening data entry popups. One of these popups has a couple of i- frames itself. These i-frames also...
0
8642
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9209
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9069
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8964
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6558
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5900
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4400
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3085
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2024
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.