0

我如何冒泡在下拉列表中更改 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

  • 但这是在 VB.net 中,我对 VB.net 的“讲”不够好,无法将其复制到 C#。
4

1 回答 1

1

据我所知,这是不可能的 - 必须冒泡到 ItemCommand,而不是 ItemCreated-command。因此,让您处理事件并获取作为 datalistitem 的 senders.parent。

于 2008-11-25T11:41:38.233 回答