Author: triggered | Posted on: 11/24/2008 6:27:42 AM | Views : 288

 How come the ASP control Button is able to do this? i.e. OnClick="SomeMethod"
 I am trying to do the same thing in my user defined control. I want a method to run defined in the user contol when the button is clicked, but also allow the developer to inject a function to run before the user control's function does.
 
The way i got around this was to expose the button and add the event handler on the page during oninit. But i would like to do this by the method of above cause developers will not know that my function needs to run. And i don't want to interface to insure that they call it.

...

Go to the complete details ...