Today I was faced with what seemed a relatively minor task of adding a confirmation to the action button associated with dropdownlist of choices. The concept was to add a simple popup for only the Delete choice in the dropdownlist choices.
NOTE: You must change the BatchAction.ClientID to ID value of the control for your dropdownlist. In my case, the ID of the control is ‘BatchAction’.
What’s really nice is you can still do your normal server-side click event if you want. In the example above, this has been removed. But it does work nicely firing first the client-side click event and then the server-side if the user confirms.