Aug 14, 2019 12:41 PM|katman|LINK
Sorry for the late response. This is not the primary function of my job and I am doing this as I have time. No, this did not resolve my issue. I am essentially already doing what your code outlined.
I have noticed something though. I have a completely different page where I do essentially the same thing and that one is working. The only difference that I could see from an initial glance at my code was that on the one that wasn't working I added the
dropdown list by dragging and dropping it onto my form and then tried to access its methods and properties from the page design interface. However, even on that page, I did fill the dropdown list from code in the Page Load event.
The one that is working, I created the dropdown list entirely with code, not by dragging and dropping it, then using the same code as the other one, I filled it with data from the database. I wouldn't think that would make a difference but I don't know
if when I dragged and dropped it, it set certain properties that I didn't set when I created it in code only. Or if there is something that wasn't set until the first time the form was posted back? Not sure. I will have to look at this some more as I get
time in the next day or two.