I am fairly new to ASP.NET so please forgive my ignorance.....
I have a listbox that I originally intended to bind to an underlying dataset. After binding the listbox to the dataset, and verifying it was being populated correctly, I noticed that the onIndexChanged event wasn't firing when the selection changed. I decided to try dynamically populating the listbox with a a SqlDataReader, doing this solved the problem.... Now the onIndexChanged event fires when expected. My question is, why couldn't I use a databound listbox to achieve the same functionality?.. Is this a shortcoming of the control or is there something obvious I am missing here?
The databinding was set up via the control's property box, therefore I am not posting any code with this thread.
Any feedback would be appreciated.
-Kevin
I have a listbox that I originally intended to bind to an underlying dataset. After binding the listbox to the dataset, and verifying it was being populated correctly, I noticed that the onIndexChanged event wasn't firing when the selection changed. I decided to try dynamically populating the listbox with a a SqlDataReader, doing this solved the problem.... Now the onIndexChanged event fires when expected. My question is, why couldn't I use a databound listbox to achieve the same functionality?.. Is this a shortcoming of the control or is there something obvious I am missing here?
The databinding was set up via the control's property box, therefore I am not posting any code with this thread.
Any feedback would be appreciated.
-Kevin