G
Guest
hi,
if i cause the onclick event to fire with an ImageButton I can send
CommandArgument which I find really handy to grab some relevant value (which
means i can reuse code for many buttons and just check the
sender.commandargument)
i want to do the same thing with 10 dropdownlists. i.e.
onselectedindexchanged fire the same event and pass an integer each time,
thats the only diff, rest is common. At the moment I'm doing a switch case
statement on 10 drop down lists to check for the sender.id which is obviously
much longer than just checking a parameter value. CommandArgument isnt a
member of DDL though. how do I send my own value to the event handler as I
can do with the imagebutton??
if i cause the onclick event to fire with an ImageButton I can send
CommandArgument which I find really handy to grab some relevant value (which
means i can reuse code for many buttons and just check the
sender.commandargument)
i want to do the same thing with 10 dropdownlists. i.e.
onselectedindexchanged fire the same event and pass an integer each time,
thats the only diff, rest is common. At the moment I'm doing a switch case
statement on 10 drop down lists to check for the sender.id which is obviously
much longer than just checking a parameter value. CommandArgument isnt a
member of DDL though. how do I send my own value to the event handler as I
can do with the imagebutton??