Accessing DropDownList.SelectedIndex in DataList.ItemCreatedCommand (EventBubbling or other solutions)

How can I bubble up the event triggered by the itemIndex change in the combobox - so that I can use the itemindex value in my ItemCreatedCommand function?

The solution was found at:

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&ct=clnk&cd=11&gl=noirefox

  • But this is in VB.net and I don't say "VB.net" well enough to reproduce this in C #.
0
c # event-bubbling drop-down-menu asp.net


source to share


1 answer


Impossible as far as I have figured out - there must be a bubble before the ItemCommand, not the ItemCreated-command. This way you are left with handling the event and get senders.parent, which is the datalistitem.



+1


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics