Professional Web Applications Themes

Page_Load not fired when window.open used to load window. - ASP.NET General

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" <johnclarkcomm2k.com> !Subject: Page_Load not fired when window.open used to load window. ...

  1. #1

    Default 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" <johnclarkcomm2k.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.2228tk2msftngp13.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

  2. #2

    Default 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

  3. #3

    Default 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 <anonymousdevdex.com>
    !References: <WMrmBgdQDHA.1724cpmsftngxa09.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; cht="us-ascii"
    !Content-Transfer-Encoding: 7bit
    !Message-ID: <#P8oMOiQDHA.2316TK2MSFTNGP12.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

  4. #4

    Default 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

  5. #5

    Default 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.1724cpmsftngxa09.phx.gbl> <#P8oMOiQDHA.2316TK2MSFTNGP12.phx.gbl>
    !MIME-Version: 1.0
    !Content-Type: text/plain
    !Content-Transfer-Encoding: 7bit
    !From: [email]yhhuangonline.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.1060cpmsftngxa09.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 <anonymousdevdex.com>
    !!References: <WMrmBgdQDHA.1724cpmsftngxa09.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; cht="us-ascii"
    !!Content-Transfer-Encoding: 7bit
    !!Message-ID: <#P8oMOiQDHA.2316TK2MSFTNGP12.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

  6. #6

    Default 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

  7. #7

    Default 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.2668cpmsftngxa06.phx.gbl> <OOJ5#95RDHA.2480tk2msftngp13.phx.gbl>
    !MIME-Version: 1.0
    !Content-Type: text/plain
    !Content-Transfer-Encoding: 7bit
    !From: [email]yhhuangonline.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.1868cpmsftngxa06.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 <anonymousdevdex.com>
    !!References: <Xi8me44RDHA.2668cpmsftngxa06.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; cht="us-ascii"
    !!Content-Transfer-Encoding: 7bit
    !!Message-ID: <OOJ5#95RDHA.2480tk2msftngp13.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

  8. #8

    Default 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

Similar Threads

  1. New Window Target doesn't open a new window inContribute but does in Firefox
    By toddtemple2 in forum Macromedia Contribute General Discussion
    Replies: 1
    Last Post: January 8th, 08:36 PM
  2. window.open - resizing a window
    By Catflea in forum Macromedia Flash Actionscript
    Replies: 0
    Last Post: February 15th, 01:00 AM
  3. don't open new window
    By Jayme Assuncao Casimiro in forum PHP Development
    Replies: 9
    Last Post: November 22nd, 04:53 AM
  4. Replies: 5
    Last Post: October 6th, 06:08 PM
  5. load a pop up window in certain position.
    By Keyt webforumsuser@macromedia.com in forum Macromedia Dynamic HTML
    Replies: 1
    Last Post: August 21st, 11:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139