Why selected index fires only once the Index of the ListItem is changed?

心已入冬 提交于 2019-12-11 07:29:29

问题


Consider a asp:dropdownlist which fires SelectedIndexChangedEvent based on listitem index.....

But why the event doesn't fire for the same listitem index when selected again....


回答1:


Because it didn't change.

You can solve this by resetting the value after each change.



来源:https://stackoverflow.com/questions/2406681/why-selected-index-fires-only-once-the-index-of-the-listitem-is-changed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!