Last post Jul 24, 2017 03:26 AM by Cathy Zou
Jul 21, 2017 04:37 PM|NJ2|LINK
What's the best way to take an action or execute a method if any of the two DropDownList has value selected or value index has changed?
I can manually check using the SelectIndexChanged event and if there is a value in the DropDownList but looking for a better way to do it.
Jul 21, 2017 04:52 PM|a2h|LINK
IMHO,it depends on what you are trying to acheive.
If you have server side(C#) methods to be executed, once user selected values in dropownlist then use SelectedIndexChanged event.
Jul 24, 2017 03:26 AM|Cathy Zou|LINK
As a2h pointed, it depended on your needs,
If the method you want to execute is server side method. using SelectedIndexChanged event is an good option for you.
If you have client method. js is an option good option.
Related links for your reference: