Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 2nd, 2006, 05:53 AM
Authorized User
Join Date: Jun 2006
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default ClientScript. : window.open -> Popup Blocker Issue

    I am using the JavaScript window.open in my asp.net 2.0 application via ClientScript.RegisterStartupScript.
    Window.Open behaves perfectly on some machines while on some machines it becomes failed with showing the Status of "PopUp Blocks" in Status Bar.
     Each Machine is installed with same version (6.0) of Internet Explorer.
     Having any IDEA/Solution then plz help me.
Old September 2nd, 2006, 02:34 PM
Friend of Wrox
Join Date: Feb 2006
Posts: 116
Thanks: 0
Thanked 0 Times in 0 Posts

I have run into this same problem, and as far as I know there is no conventional way for anything you code to get around those popup blockers, and quite frankly that is the way it should be. Those blockers are there for a reason.

One way to get around it, is to make or buy controls that provide the functionality you were using in a popup window, in the same window client side. Case in point: a date picker popup window can be replaced with a javascript date picker that runs in the same window.

Another option is to provide instructions for your users on how to exempt your sites popups from being blocked, and that they must allow popups for your site to operate properly.

Neil Timmerman
Veris Consulting
Old September 15th, 2006, 07:25 AM
Authorized User
Join Date: Sep 2006
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts

The reason for this is because IE 6.0 has a popup blocker. While your popup is legitimate, the popup blocker is enabled (even on my system) to stop all the nonsense of advertisements windows coming on the screen, when a particular site is opened. The result, legitimate ones are disabled.

Since this is not a code issue, you have to get around by asking users to modify their IE popup blocker settings and add your site to the allow-popup list. Also add a message on your site to add yoursite to the trust list so that popups can be enabled. And ensure that no ads are put up lest they block it again.

Vincent Thomas
Old September 20th, 2006, 09:59 AM
Authorized User
Join Date: Apr 2005
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to DudeBori82 Send a message via MSN to DudeBori82

The only window.open methods that don't cause the pop-up blocker reaction, in my experience, are window.open methods that are caused by a deliberate user action, such as clicking a button. If you set onclick='window.open'GCCManage.aspx','ManageCashCa rd','width=800,height=600')', then it will not trigger pop-ups, because the user wanted the reaction of the button.

Troubleshooting life: 1 bug at a time.

Similar Threads
Thread Thread Starter Forum Replies Last Post
open popup window with text reddyshekar C# 2005 1 July 2nd, 2007 08:34 AM
Session tracking with google popup blocker dshamim Classic ASP Professional 0 December 20th, 2006 09:48 AM
JavaScript : window.open -> Popup Blocker Issue AbrarNazeer Pro JSP 0 September 2nd, 2006 05:49 AM
open popup window in asp.net rajn ASP.NET 1.0 and 1.1 Basics 6 August 2nd, 2006 06:23 AM
PopUp blocker In C# VB.net nashnash ASP.NET 1.0 and 1.1 Professional 1 September 29th, 2004 03:53 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.