Ask a Question related to ASP.NET General, Design and Development.
-
Yan-Hong Huang[MSFT] #1
RE: Page_Load not fired when window.open used to load window.
Hello John,
Did you mean that the problem only happens after you upgrade to VS 2003 and
framework 1.1? Does the problem exist in VS 2002 and framework 1.0? After
getting your response, I will try to test it on my side. If I could repro
it, I will file this problem to our product team. Thanks very much for
your feedback.
Best regards,
yhhuang
VS.NET, Visual C++
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.
Got .Net? [url]http://www.gotdotnet.com[/url]
--------------------
!From: "John Clark" <johnclark@comm2k.com>
!Subject: Page_Load not fired when window.open used to load window.
!Date: Wed, 2 Jul 2003 11:45:28 -0500
!Lines: 17
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
!Message-ID: <uOqQblLQDHA.2228@tk2msftngp13.phx.gbl>
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!NNTP-Posting-Host: 198.68.206.115
!Path: cpmsftngxa09.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl
!Xref: cpmsftngxa09.phx.gbl microsoft.public.dotnet.framework.aspnet:31779
!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!
!I am experiencing an unexpected problem using javascript + dhtml
window.open
!to invoke an aspx page.
!
!This is occuring in VS 2003 with CLR 1.1.
!
!Code is window.open("target.aspx","_blank");
!
!The page_load is called normally when I browse to the page target.aspx.
!However, it is not called when the page is invoked by window.open.
!
!I have been using this technique for several generations of this code.
!
!Any help would be appreciated.
!
!John
!
!
!
Yan-Hong Huang[MSFT] Guest
-
New Window Target doesn't open a new window inContribute but does in Firefox
I have made the neccessary steps to allow a link to open in a new window by choosing "New Window" as the Target, and when testing the published page... -
window.open - resizing a window
Is there a way to resize a window once it is opened through java:window.open I want to run a series of animations in a single window, however the... -
How to get a OPEN/SAVE dialog option window when open Excel from IE browser.
I use the following to open Excel from IE browser, but I don't get a OPEN/SAVE dialog option window. Instead, the Excel opened in the browser... -
How to use 'window.open()'
Hi, I'd like to find out how to use the window.open() script in Fireworks. When you create a hotspot, button, or slice, which can have a link... -
load a pop up window in certain position.
Does anyone know a script that makes a new browser window opens in a certain position? and is there a way to tell the parent frame do not reload... -
John Clark #2
RE: Page_Load not fired when window.open used to load window.
The particular set of code I am testing was never used on VS 2002.
However, I am using the technique in several areas of this application.
Here's some more information...
WebPage1.aspx contains (among other elements) an IFrame in which a set
of HTML code is loaded. The javascript resides in the HTML code.
Version 1 of the javascript opens the window and loads an off-site page.
This always works.
Version 2 (the failing version) invokes WebPage2.aspx which is designed
to use Page_Load to log the activity and redirect to the off-site page.
WebPage2.aspx is invoked but the Page_Load routine is not accessed.
On the other hand when I browse to WebPage2.aspx the Page_Load routine
is invoked normally.
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
John Clark Guest
-
Yan-Hong Huang[MSFT] #3
RE: Page_Load not fired when window.open used to load window.
Hello John,
Could you please email me the script that your used to invokes
webpage2.aspx and the page_load code of webpage2.aspx? Please extract only
the useful codes which could reproduce the problem. I will test it on my
side as soon as possible and reply you here.
Please remove online from my email address to email to me. Thanks very
much.
Best regards,
yhhuang
VS.NET, Visual C++
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.
Got .Net? [url]http://www.gotdotnet.com[/url]
--------------------
!From: John Clark <anonymous@devdex.com>
!References: <WMrmBgdQDHA.1724@cpmsftngxa09.phx.gbl>
!X-Newsreader: AspNNTP 1.50 (ActionJackson.com)
!Subject: RE: Page_Load not fired when window.open used to load window.
!Mime-Version: 1.0
!Content-Type: text/plain; charset="us-ascii"
!Content-Transfer-Encoding: 7bit
!Message-ID: <#P8oMOiQDHA.2316@TK2MSFTNGP12.phx.gbl>
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!Date: Fri, 04 Jul 2003 04:58:13 -0700
!NNTP-Posting-Host: actionjackson133.dsl.frii.net 216.17.147.133
!Lines: 1
!Path: cpmsftngxa09.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
!Xref: cpmsftngxa09.phx.gbl microsoft.public.dotnet.framework.aspnet:32287
!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!
!
!The particular set of code I am testing was never used on VS 2002.
!However, I am using the technique in several areas of this application.
!
!Here's some more information...
!
!WebPage1.aspx contains (among other elements) an IFrame in which a set
!of HTML code is loaded. The javascript resides in the HTML code.
!
!Version 1 of the javascript opens the window and loads an off-site page.
!This always works.
!
!Version 2 (the failing version) invokes WebPage2.aspx which is designed
!to use Page_Load to log the activity and redirect to the off-site page.
!WebPage2.aspx is invoked but the Page_Load routine is not accessed.
!
!On the other hand when I browse to WebPage2.aspx the Page_Load routine
!is invoked normally.
!
!
!*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
!Don't just participate in USENET...get rewarded for it!
!
Yan-Hong Huang[MSFT] Guest
-
Bill B #4
Re: Page_Load not fired when window.open used to load window.
I am seeing very similar behaviour to this. I can open a popup window
using window.open() and the Page_Load is called. But if I close the
window using the X button from the title bar, the next time I call
window.open() on it, the Page_Load is not called, and a cached version
of the page is displayed. If I close the window using my own close
button that calls javascript:windowClose(), the next time I call
window.open() on the window, the Page_Load is called properly.
Bill B Guest
-
Yan-Hong Huang[MSFT] #5
RE: Page_Load not fired when window.open used to load window.
Hello John,
If you are still monitoring this issue, could you please post another note to let me know you are still there? I need a detailied
repro sample to test first.
Thanks.
Best regards,
yhhuang
VS.NET, Visual C++
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.
Got .Net? [url]http://www.gotdotnet.com[/url]
--------------------
!X-Tomcat-ID: 161469255
!References: <WMrmBgdQDHA.1724@cpmsftngxa09.phx.gbl> <#P8oMOiQDHA.2316@TK2MSFTNGP12.phx.gbl>
!MIME-Version: 1.0
!Content-Type: text/plain
!Content-Transfer-Encoding: 7bit
!From: [email]yhhuang@online.microsoft.com[/email] (Yan-Hong Huang[MSFT])
!Organization: Microsoft
!Date: Mon, 07 Jul 2003 09:02:20 GMT
!Subject: RE: Page_Load not fired when window.open used to load window.
!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!Message-ID: <9KuADaGRDHA.1060@cpmsftngxa09.phx.gbl>
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!Lines: 56
!Path: cpmsftngxa09.phx.gbl
!Xref: cpmsftngxa09.phx.gbl microsoft.public.dotnet.framework.aspnet:32635
!NNTP-Posting-Host: TOMCATIMPORT2 10.201.218.182
!
!Hello John,
!
!Could you please email me the script that your used to invokes
!webpage2.aspx and the page_load code of webpage2.aspx? Please extract only
!the useful codes which could reproduce the problem. I will test it on my
!side as soon as possible and reply you here.
!
!Please remove online from my email address to email to me. Thanks very
!much.
!
!Best regards,
!yhhuang
!VS.NET, Visual C++
!Microsoft
!
!This posting is provided "AS IS" with no warranties, and confers no rights.
!Got .Net? [url]http://www.gotdotnet.com[/url]
!--------------------
!!From: John Clark <anonymous@devdex.com>
!!References: <WMrmBgdQDHA.1724@cpmsftngxa09.phx.gbl>
!!X-Newsreader: AspNNTP 1.50 (ActionJackson.com)
!!Subject: RE: Page_Load not fired when window.open used to load window.
!!Mime-Version: 1.0
!!Content-Type: text/plain; charset="us-ascii"
!!Content-Transfer-Encoding: 7bit
!!Message-ID: <#P8oMOiQDHA.2316@TK2MSFTNGP12.phx.gbl>
!!Newsgroups: microsoft.public.dotnet.framework.aspnet
!!Date: Fri, 04 Jul 2003 04:58:13 -0700
!!NNTP-Posting-Host: actionjackson133.dsl.frii.net 216.17.147.133
!!Lines: 1
!!Path: cpmsftngxa09.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
!!Xref: cpmsftngxa09.phx.gbl microsoft.public.dotnet.framework.aspnet:32287
!!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!!
!!
!!The particular set of code I am testing was never used on VS 2002.
!!However, I am using the technique in several areas of this application.
!!
!!Here's some more information...
!!
!!WebPage1.aspx contains (among other elements) an IFrame in which a set
!!of HTML code is loaded. The javascript resides in the HTML code.
!!
!!Version 1 of the javascript opens the window and loads an off-site page.
!!This always works.
!!
!!Version 2 (the failing version) invokes WebPage2.aspx which is designed
!!to use Page_Load to log the activity and redirect to the off-site page.
!!WebPage2.aspx is invoked but the Page_Load routine is not accessed.
!!
!!On the other hand when I browse to WebPage2.aspx the Page_Load routine
!!is invoked normally.
!!
!!
!!*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
!!Don't just participate in USENET...get rewarded for it!
!!
!
!
Yan-Hong Huang[MSFT] Guest
-
John Clark #6
RE: Page_Load not fired when window.open used to load window.
This remains an outstanding issue. I have just returned to my office
this morning and will provide some detail as soon as possible. That will
probably be this weekend since I have to catch up with the activity
around here.
Thanks,
John
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
John Clark Guest
-
Yan-Hong Huang[MSFT] #7
RE: Page_Load not fired when window.open used to load window.
Hi John,
I didn't see that repro sample yet. I think you should be busy with business now. Anyway when you have time, you could post
here or in a new thread. Thanks.
Best regards,
Yanhong Huang
Microsoft Online Partner Support
Get Secure! - [url]www.microsoft.com/security[/url]
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
!X-Tomcat-ID: 148919118
!References: <Xi8me44RDHA.2668@cpmsftngxa06.phx.gbl> <OOJ5#95RDHA.2480@tk2msftngp13.phx.gbl>
!MIME-Version: 1.0
!Content-Type: text/plain
!Content-Transfer-Encoding: 7bit
!From: [email]yhhuang@online.microsoft.com[/email] (Yan-Hong Huang[MSFT])
!Organization: Microsoft
!Date: Mon, 14 Jul 2003 09:22:01 GMT
!Subject: RE: Page_Load not fired when window.open used to load window.
!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!Message-ID: <6ixHlleSDHA.1868@cpmsftngxa06.phx.gbl>
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!Lines: 36
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:158839
!NNTP-Posting-Host: TOMCATIMPORT2 10.201.218.182
!
!Hi John,
!
!Thanks very much. I look forward to your response.
!
!Best regards,
!yhhuang
!VS.NET, Visual C++
!Microsoft
!
!This posting is provided "AS IS" with no warranties, and confers no rights.
!Got .Net? [url]http://www.gotdotnet.com[/url]
!--------------------
!!From: John Clark <anonymous@devdex.com>
!!References: <Xi8me44RDHA.2668@cpmsftngxa06.phx.gbl>
!!X-Newsreader: AspNNTP 1.50 (ActionJackson.com)
!!Subject: RE: Page_Load not fired when window.open used to load window.
!!Mime-Version: 1.0
!!Content-Type: text/plain; charset="us-ascii"
!!Content-Transfer-Encoding: 7bit
!!Message-ID: <OOJ5#95RDHA.2480@tk2msftngp13.phx.gbl>
!!Newsgroups: microsoft.public.dotnet.framework.aspnet
!!Date: Fri, 11 Jul 2003 04:28:03 -0700
!!NNTP-Posting-Host: actionjackson133.dsl.frii.net 216.17.147.133
!!Lines: 1
!!Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl
!!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:158508
!!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!!
!!This remains an outstanding issue. I have just returned to my office
!!this morning and will provide some detail as soon as possible. That will
!!probably be this weekend since I have to catch up with the activity
!!around here.
!!
!!Thanks,
!!
!!John
!!
!!
!!
!!*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
!!Don't just participate in USENET...get rewarded for it!
!!
!
!
!
Yan-Hong Huang[MSFT] Guest
-
estrella #8
Re: Page_Load not fired when window.open used to load window.
hello.
help me please .
My code is
<script language="javascript" type="text/javascript" >
var childWindow;
function DisplayChartView() {
childWindow = window.showModalDialog("WebFormTest.aspx", "CabinMapping",
}
</script>
where I load the page , the page WebFormTest.aspx is colled. but I close this Modal(X) and I presed load the page WebFormTest.aspx". is not colled the methods Load _page
protected void Page_Load(object sender, EventArgs e)
{
test();
}estrella Guest



Reply With Quote

