Execution order of PageLoad for user controls

Discussion in 'ASP .Net' started by =?Utf-8?B?QmlsbCBCb3Jn?=, Mar 6, 2004.

  1. Hello all

    I am trying to understand the execution order of the PageLoad routines in two different user controls on the same page. In particular, I need one to execute before the other, but I can't seem to change the order. It doesn't appear to depend on the order in which they are registered on the page. Any thoughts

    Thanks

    Bill Borg
     
    =?Utf-8?B?QmlsbCBCb3Jn?=, Mar 6, 2004
    #1
    1. Advertising

  2. =?Utf-8?B?QmlsbCBCb3Jn?=

    Teemu Keiski Guest

    Hi,

    basically you can't rely on order of the events. You make things sure by
    calling custom methods (which do the task you now have in event handlers) of
    the user controls in order, say in Page's Load event handler.

    --
    Teemu Keiski
    MCP, Microsoft MVP (ASP.NET), AspInsiders member
    ASP.NET Forum Moderator, AspAlliance Columnist

    "Bill Borg" <> wrote in message
    news:...
    Hello all,

    I am trying to understand the execution order of the PageLoad routines in
    two different user controls on the same page. In particular, I need one to
    execute before the other, but I can't seem to change the order. It doesn't
    appear to depend on the order in which they are registered on the page. Any
    thoughts?

    Thanks,

    Bill Borg
     
    Teemu Keiski, Mar 6, 2004
    #2
    1. Advertising

  3. This helps a lot, thanks.
     
    =?Utf-8?B?QmlsbCBCb3Jn?=, Mar 6, 2004
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stephan Bour

    Different DataList fields on PageLoad

    Stephan Bour, Jan 14, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    323
    Stephan Bour
    Jan 14, 2004
  2. Stephan Bour
    Replies:
    1
    Views:
    469
    Justin Dutoit
    Jan 15, 2004
  3. Andreas Klemt
    Replies:
    0
    Views:
    373
    Andreas Klemt
    Feb 27, 2004
  4. Bijoy Naick

    Execution order of Validation Controls

    Bijoy Naick, Jun 8, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    2,994
    Martin Marinov
    Jun 8, 2004
  5. Phil Johnson

    User Control PageLoad even not firing

    Phil Johnson, Jan 31, 2008, in forum: ASP .Net
    Replies:
    2
    Views:
    504
    Phil Johnson
    Jan 31, 2008
Loading...

Share This Page