472,983 Members | 2,635 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

How to do server-side processing and then display pop-up with pop-up blocker enabled

Hi all,

Here is what I want: when a user clicks a <asp:button>, its event
handler will do some server-side processing and then pop up a windows
of another page.

As far as I know, if no pop-up blocker is disabled, the button event
handler can be something like the following to pop-up a window after
server-side processing

// Do server-side processing first

// Then pop-up window
string strjscript = "<script language='javascript' id='PopUpScript'>";
strjscript += "window.open('popup.aspx', '_blank',
'height=300, width=200');";
strjscript += "</script" + ">";

if (!Page.IsClientScriptBlockRegistered("PopUpScript" ))
Page.RegisterClientScriptBlock("PopUpScript", strjscript);
However, google and yahoo toolbar pop-up blockers is able to block this
type of pop-up windows.

If there is no need to do server-side processing, I can do the
following in Page_Load

btnPopUp.Attributes.Add("OnClick", "window.open('popup.aspx',
'_blank', 'height=300, width=200');return false;");

Google toolbar popup-blocker won't block this type of pop-up, but
Yahoo toolbar will block it. So, if we need to get around yahoo toolbar
pop-up blocker, I think that we have to use an anchor (or
<asp:hyperlink> equivalently)

<asp:HyperLink ID="hyperlink1" NavigateUrl="PopUp.aspx" Runat="server"
Text="Click here"/>

hyperlink1.Attributes.Add("OnClick", "window.open('popup.aspx',
'_blank', 'height=300, width=200');return false;");

Unfortunately, the above methods cannot do any server-side processing
before popping-up the windows.

So, is there a method that can both do server-side processing and
bypass the pop-up blockers?

Thanks
Dominic

Feb 3 '06 #1
2 1983
yes.

1) you can use an AJAX technology to do the popup so the server is called
first.
2) do the server side process in the popup page (pass info thru the query
string - 2k limit)

-- bruce (sqlwork.com)
<do****@hotmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Hi all,

Here is what I want: when a user clicks a <asp:button>, its event
handler will do some server-side processing and then pop up a windows
of another page.

As far as I know, if no pop-up blocker is disabled, the button event
handler can be something like the following to pop-up a window after
server-side processing

// Do server-side processing first

// Then pop-up window
string strjscript = "<script language='javascript' id='PopUpScript'>";
strjscript += "window.open('popup.aspx', '_blank',
'height=300, width=200');";
strjscript += "</script" + ">";

if (!Page.IsClientScriptBlockRegistered("PopUpScript" ))
Page.RegisterClientScriptBlock("PopUpScript", strjscript);
However, google and yahoo toolbar pop-up blockers is able to block this
type of pop-up windows.

If there is no need to do server-side processing, I can do the
following in Page_Load

btnPopUp.Attributes.Add("OnClick", "window.open('popup.aspx',
'_blank', 'height=300, width=200');return false;");

Google toolbar popup-blocker won't block this type of pop-up, but
Yahoo toolbar will block it. So, if we need to get around yahoo toolbar
pop-up blocker, I think that we have to use an anchor (or
<asp:hyperlink> equivalently)

<asp:HyperLink ID="hyperlink1" NavigateUrl="PopUp.aspx" Runat="server"
Text="Click here"/>

hyperlink1.Attributes.Add("OnClick", "window.open('popup.aspx',
'_blank', 'height=300, width=200');return false;");

Unfortunately, the above methods cannot do any server-side processing
before popping-up the windows.

So, is there a method that can both do server-side processing and
bypass the pop-up blockers?

Thanks
Dominic

Feb 3 '06 #2
Bruce Barker said the following on 2/3/2006 6:03 PM:
yes.

1) you can use an AJAX technology to do the popup so the server is called
first.
And then ask why it still doesn't work?
2) do the server side process in the popup page (pass info thru the query
string - 2k limit)


Assuming you get a popup to start with....

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Feb 4 '06 #3

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

Similar topics

2
by: Phil | last post by:
I am using a Pascal like language (Wealth-Lab) on W2K and call this server: class HelloWorld: _reg_clsid_ = "{4E797C6A-5969-402F-8101-9C95453CF8F6}" _reg_desc_ = "Python Test COM Server"...
0
by: Philip Trim | last post by:
General Brief: 3 SQL Servers as MS SQL Server 2000 Standard Edition with Service Pack 3 All using FTP for snapshots All Servers are both Publishers and Distributors. Server A has the correct...
2
by: Jay Chan | last post by:
We have just installed a SQL Server 2000 (SP 3A) onto a computer that has Windows-2003 Server on it. Now, we cannot get access to that database server from other computers. Seem like this may be an...
0
by: Zorba.GR | last post by:
IBM DB2 Connect Enterprise Edition v8.2, other IBM DB2 (32 bit, 64 bit) (MULTiOS, Windows, Linux, Solaris), IBM iSoft Commerce Suite Server Enterprise v3.2.01, IBM Tivoli Storage Resource Manager...
12
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed...
6
by: Daniel Walzenbach | last post by:
Hi, I have a web application which sometimes throws an “out of memory” exception. To get an idea what happens I traced some values using performance monitor and got the following values (for...
22
by: EP | last post by:
When running my asp.net hosting service (asp.net without IIS), on server 2003 with IIS not installed, I get the following when trying to process a request. "System.DllNotFoundException: Unable to...
1
by: Peter | last post by:
I've purchased VS.NET 2005 Standard and have tried to install SQL Server 2005 Express, but get the following error in the error log. Please could someone help me.... Microsoft SQL Server 2005...
8
by: Daniel Crespo | last post by:
Hello everybody, I'm trying to implement a secure xmlrpc server with basis on http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496786 recipe. The thing that I'm concerned about is how can...
14
by: Developer | last post by:
Hello All, i have recently installed VS2005 and was trying to install SQL sever 2000. I have Win XP' SP2. But when I tried installing, it only installed client tools and not the database. Can...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.