Pop ups

B

BrassicaNigra

I have an application that uses a link button in a gridview row to open a new
window to collect some data and save it to the database. This works fine on
24 out of 26 computers in our shop. Two of the computers do absolutely
nothing when I click this button. One of the problem machines is running
IE6, the other is running IE7. I have looked at Tools, Internet Options to
make sure popups are enabled, etc. Anybody have any idea why this would work
on most but not all of my machines.

The code I am using is;

Response.Write("<script type='text/javascript'>detailedresults=window.open
('ApplyHold.aspx?ID=" + ReleaseID.Text + "&SalesOrderID=" + SalesOrderID.Text
+ "&WorkCenter=" + WorkCenterDropDownList.SelectedValue + "&UserID=" +
UserIDTextBox.Text + "&LineID=" + LineID.Text + "&ReferenceID=" +
ReferenceID.Text + "', '', 'Height=150, Width = 500', '');</script>");

Thank you.
 
S

Steven Cheng

Hi Brassica,

From your description, one of your ASP.NET web page which use script to
open popup dialog works incorrectly on some certain client machine ,correct?

Basedo my experience, since the page works on most clients, the problem is
likely specificc to the two machines' client environment. As for the popup
script, have you tried use it directly in a simple button on page's top
level(rather than inside GridView) to see whether it works? Also, for
registering client script programmatically, we always recommend you use
Page.ClientScript.RegisterXXX methods instead of using Response.Write(the
former will ensure the script be rendered at the proper location in page's
client html source).

In addition, is there any other 3rd party popup blockers that may disables
the popup windows on that two machines?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.





--------------------
From: =?Utf-8?B?QnJhc3NpY2FOaWdyYQ==?= <[email protected]>
Subject: Pop ups
Date: Tue, 19 Feb 2008 10:25:01 -0800
 
B

BrassicaNigra

It was a third party pop up blocker!

"Steven Cheng" said:
Hi Brassica,

From your description, one of your ASP.NET web page which use script to
open popup dialog works incorrectly on some certain client machine ,correct?

Basedo my experience, since the page works on most clients, the problem is
likely specificc to the two machines' client environment. As for the popup
script, have you tried use it directly in a simple button on page's top
level(rather than inside GridView) to see whether it works? Also, for
registering client script programmatically, we always recommend you use
Page.ClientScript.RegisterXXX methods instead of using Response.Write(the
former will ensure the script be rendered at the proper location in page's
client html source).

In addition, is there any other 3rd party popup blockers that may disables
the popup windows on that two machines?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top