HELP: User control problem (with drop down list populated by db)

Discussion in 'ASP .Net' started by VB Programmer, Dec 17, 2003.

  1. I have a user control that has a drop down list. Initially it has no items.
    The items are loaded into the drop down list in the Page_Load event of the
    user control. Basically if MyDropDownList.Items.Count=0 (first time) I open
    up a database and populate the drop down list.

    The user control is on the top of several other pages. I put a break point
    on the Page Load of the user control and MyDropDownList.Items.Count is
    ALWAYS 0, even though I step through the code where it adds items to the
    list. It seems like it's refreshing the user control to it's default or
    something.

    Any ideas?
     
    VB Programmer, Dec 17, 2003
    #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. SirPoonga
    Replies:
    2
    Views:
    799
    Ben Strackany
    Jan 7, 2005
  2. Accelerator
    Replies:
    1
    Views:
    477
    Ray Booysen
    Mar 20, 2006
  3. weiwei
    Replies:
    0
    Views:
    1,047
    weiwei
    Jan 5, 2007
  4. smccreadie
    Replies:
    0
    Views:
    236
    smccreadie
    Oct 27, 2006
  5. Replies:
    5
    Views:
    295
Loading...

Share This Page