Posted on: 11/2/2013 4:08:38 PM | Views : 613

I want to create a "default" event handler for a button, so if there are no subscribers to the Click event the default handler runs.  I assume subscriber count will allways be at least one if I am in a handler correct?  
Conceptually:
protected void btn_Reset_Click( object sender, EventArgs e ) { List<delegate> subscribers= btn_Reset.Click.GetInvocationList(); if(subscribers.Count == 1){ DoDefaultAction; } else { DoSubscribersActions(); } } Really not sure how to get started here. TIA.

Go to the complete details ...