Correct events order for databinding

Discussion in 'ASP .Net' started by craigkenisston@hotmail.com, Jun 25, 2006.

  1. Guest

    I have a form with a repeater that is filled from a BLL object, and a
    dropdownlist.
    The dropdownlist has a parameters that is used in the BLL class, the
    number of rows about to be displayed.
    I have a databind in the Page_Load and I have a
    ddlRowsPerPage_SelectedIndexChanged even in the dropdownlist.
    However, I never get the correct number of rows because, the Page_Load
    with the databinding is fired first, then the SelectedIndexChange event
    is. So the page_load does not get the updated value.
    What's the correct approach for this ?

    Thanks in advace,
    , Jun 25, 2006
    #1
    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. =?Utf-8?B?bG91aXNlIHJhaXNiZWNr?=

    order of events - dynamic checkbox events

    =?Utf-8?B?bG91aXNlIHJhaXNiZWNr?=, Aug 17, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    555
    =?Utf-8?B?bG91aXNlIHJhaXNiZWNr?=
    Aug 17, 2005
  2. Nathan Sokalski

    Order of events, databinding, and UserControls

    Nathan Sokalski, May 21, 2006, in forum: ASP .Net
    Replies:
    9
    Views:
    453
    Nathan Sokalski
    May 23, 2006
  3. Rex the Strange

    Databinding and order of events

    Rex the Strange, Nov 17, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    347
    Rex the Strange
    Nov 17, 2006
  4. Nathan Sokalski

    Order of events, databinding, and UserControls

    Nathan Sokalski, May 21, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    8
    Views:
    138
    Nathan Sokalski
    May 23, 2006
  5. Nathan Sokalski

    Order of events, databinding, and UserControls

    Nathan Sokalski, May 21, 2006, in forum: ASP .Net Web Controls
    Replies:
    8
    Views:
    151
    Nathan Sokalski
    May 23, 2006
Loading...

Share This Page