I have a drop down list which is being populated with data from a database using a datasource in visual studio 2010. All the values are unique and I have set up an event to carry out an action when a new value is selected. When I select a new value in the drop down list the new value is selected but the event does not fire. I put a break point in the code to see if it was being executed which was not being hit.
I read about setting the drop down lists AutoPostBack to true but all this seems to do is refresh the page and set the list back to its original selected state (possible why the event is not firing?).
I also read something about enabling the ViewState as this could cause it to not fire, I tried putting EnableViewState = "true" at the top of the View to no avail. The EnableViewState property is also set to true on the drop down list.
I would be grateful if anyone has any insight into a solution?
Thanks
ViewState
,AutoPostBack
orEnableVeiwState
- Tim B James