custom server control event before Page_Load fired

Discussion in 'ASP .Net' started by Michal Valent, Nov 27, 2007.

  1. Hello,
    I have noticed,
    that some custom server controls are able fire its own events e.g.
    someGrid_PageIndexChanged
    before the Page_load event.

    Can anybody explain how is it possible ?

    According to the Microsoft .. Page Life Cycle articles,
    Page events follows the order :
    ..
    ..
    ..
    Page_Init
    Page_Load
    Control events (like Button_Click, someGrid_PageIndexChanged, ...)
    ..
    ..
    ..

    thanks
    mike
    Michal Valent, Nov 27, 2007
    #1
    1. Advertising

  2. Michal Valent

    bruce barker Guest

    events that are triggered by data changes will fire when postback data
    is applied to a control. this happens between oninit and onload.

    -- bruce (sqlwork.com)

    Michal Valent wrote:
    > Hello,
    > I have noticed,
    > that some custom server controls are able fire its own events e.g.
    > someGrid_PageIndexChanged
    > before the Page_load event.
    >
    > Can anybody explain how is it possible ?
    >
    > According to the Microsoft .. Page Life Cycle articles,
    > Page events follows the order :
    > .
    > .
    > .
    > Page_Init
    > Page_Load
    > Control events (like Button_Click, someGrid_PageIndexChanged, ...)
    > .
    > .
    > .
    >
    > thanks
    > mike
    >
    >
    bruce barker, Nov 27, 2007
    #2
    1. Advertising

  3. Can you tell what common control is doing so ?


    "bruce barker" <> wrote in message
    news:...
    > events that are triggered by data changes will fire when postback data is
    > applied to a control. this happens between oninit and onload.
    >
    > -- bruce (sqlwork.com)
    >
    > Michal Valent wrote:
    >> Hello,
    >> I have noticed,
    >> that some custom server controls are able fire its own events e.g.
    >> someGrid_PageIndexChanged
    >> before the Page_load event.
    >>
    >> Can anybody explain how is it possible ?
    >>
    >> According to the Microsoft .. Page Life Cycle articles,
    >> Page events follows the order :
    >> .
    >> .
    >> .
    >> Page_Init
    >> Page_Load
    >> Control events (like Button_Click, someGrid_PageIndexChanged, ...)
    >> .
    >> .
    >> .
    >>
    >> thanks
    >> mike
    >>
    Michal Valent, Nov 27, 2007
    #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. Philippe Camus
    Replies:
    2
    Views:
    2,504
    Philippe Camus
    Mar 30, 2006
  2. rockdale
    Replies:
    1
    Views:
    656
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Nov 16, 2006
  3. Michal Valent
    Replies:
    2
    Views:
    4,306
    Michal Valent
    Dec 5, 2007
  4. SammyBar
    Replies:
    1
    Views:
    598
    Erjan Gavalji
    Jul 21, 2009
  5. Fabrizio
    Replies:
    5
    Views:
    233
    Alessandro Zifiglio
    Feb 24, 2004
Loading...

Share This Page