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

V

VB Programmer

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?
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,586
Members
45,088
Latest member
JeremyMedl

Latest Threads

Top