Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我如何冒泡在下拉列表中更改 itemIndex 时引起的事件 - 以便我可以在我的 ItemCreatedCommand 函数中使用 itemindex-value?
在以下位置找到解决方案:
http://209.85.129.132/search?q=cache:cYDzeE8Swf0J:authors.aspalliance.com/hmcheung/Articles/030331/Default.aspx+dropdownlist+datalist+selectedindex&hl=no&ct=clnk&cd=11&gl=no&client=firefox-a
据我所知,这是不可能的 - 必须冒泡到 ItemCommand,而不是 ItemCreated-command。因此,让您处理事件并获取作为 datalistitem 的 senders.parent。