A while back I was having a
problem with getting events to fire from a drop down list inside a repeater. In that case, I turned off ViewState for the Repeater control, and everything worked fine after that. Well, last week I came upon a situation (much to complicated to go into here) where that just wouldn't work. I needed the ViewState to be on, and knew there should be a reasonable way to make it work. To make a (much too) long story short, after talking it through with
Leo I discovered the error of my ways. I was populating the items inside the drop down list during the Repeater's ItemCreated event. Apparently that's bad. I took exactly the same code and moved it to the handler for ItemDataBound, and everyone was happy. Now I can leave ViewState on, correctly populate the items in the list,
and actully get the SelectedIndexChanged event properly fired from each and every DropDownList.
It's the little things...