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='javas cript' id='PopUpScript '>";
strjscript += "window.open('p opup.aspx', '_blank',
'height=300, width=200');";
strjscript += "</script" + ">";
if (!Page.IsClient ScriptBlockRegi stered("PopUpSc ript"))
Page.RegisterCl ientScriptBlock ("PopUpScrip t", 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.Attrib utes.Add("OnCli ck", "window.open('p opup.aspx',
'_blank', 'height=300, width=200');ret urn 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:hyperlin k> equivalently)
<asp:HyperLin k ID="hyperlink1 " NavigateUrl="Po pUp.aspx" Runat="server"
Text="Click here"/>
hyperlink1.Attr ibutes.Add("OnC lick", "window.open('p opup.aspx',
'_blank', 'height=300, width=200');ret urn 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 2 2026
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.goo glegroups.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='javas cript' id='PopUpScript '>"; strjscript += "window.open('p opup.aspx', '_blank', 'height=300, width=200');"; strjscript += "</script" + ">";
if (!Page.IsClient ScriptBlockRegi stered("PopUpSc ript")) Page.RegisterCl ientScriptBlock ("PopUpScrip t", 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.Attrib utes.Add("OnCli ck", "window.open('p opup.aspx', '_blank', 'height=300, width=200');ret urn 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:hyperlin k> equivalently)
<asp:HyperLin k ID="hyperlink1 " NavigateUrl="Po pUp.aspx" Runat="server" Text="Click here"/>
hyperlink1.Attr ibutes.Add("OnC lick", "window.open('p opup.aspx', '_blank', 'height=300, width=200');ret urn 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
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.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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"
_reg_progid_ = "Python.TestServer"
_public_methods_ =
_public_attrs_ =
_readonly_attrs_ =
|
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 data needed to be replicated to Server B
and C.
Server B and C and have blank data.
Server B and C are blank databases ready for replication.
Server A publishers to Server B and Server C
|
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 issue
with Active Directory.
Our network consists of Windows-2000 Servers (SP 4) and Windows-2000
workstations and Windows-XP workstations. We also have SQL Server 2000
(SP2) in three Windows-2000 servers. All work fine. Recently, we get a...
|
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 Express
Edition v1.3.2 Win, IBM Tivoli System Automation v1.2.0 Linux, IBM
Tivoli Workload Scheduler Virtualized Data Centers v8.2 , other
IBM Tivoli CDs, WEBSPHERE EVERYPLACE MOBILE PORTAL v5.0 - ALTIUM , other IBM WebSphere Business CDs...
|
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 both the iis and sql server in a single machine. Not too
long ago, the machine had some hardware problems, and management has
decided to purchase new servers, for both asp.net and sql server.
| |
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 one day):
\\FFDS24\ASP.NET Applications(_LM_W3SVC_1_Root_ATV2004)\Errors During
Execution: 7
\\FFDS24\ASP.NET Apps v1.1.4322(_LM_W3SVC_1_Root_ATV2004)\Compilations
|
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 load DLL (aspnet_isapi.dll)."
Of course the dll is able to be found, it's still in the framework directory
and for grins I even put it in my service's local directory. This is apparantly
server 2003 not allowing asp.net to be run if IIS was not...
|
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 Express Edition x86:
Component Microsoft SQL Server 2005 Express Edition x86 returned an
unexpected value.
***EndOfSession***? Microsoft SQL Server 2005 Express
Edition x86: Component Microsoft SQL Server 2005 Express Edition x86
returned an...
|
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 I get/create rapidly the
..pem files (the key and cert).
Any help?
Thanks
|
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 anyone please help me with this as I want to install SQL server and
also wouold be grateful, if you can suggest me any workaround to
dealwith this problem.(Like should I install any new OS etc).
Any help would be appreciated.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look !
Part I. Meaning of...
| |
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,...
|
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...
|
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,...
|
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...
|
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();...
|
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...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |