为什么仅在ListItem的索引更改后才触发选定的索引? [英] Why selected index fires only once the Index of the ListItem is changed?

查看:135
本文介绍了为什么仅在ListItem的索引更改后才触发选定的索引?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

考虑一个asp:dropdownlist,它根据listitem index .....

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

但是,为什么再次选择该事件却不会针对同一listitem index触发....

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

推荐答案

因为它没有更改.

您可以通过在每次更改后重置值来解决此问题.

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

这篇关于为什么仅在ListItem的索引更改后才触发选定的索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆