Always Get Better

Never stop looking for ways to improve

September 24th, 2008

Problem: I created a custom control with a dynamic button and attached an event handler to that button.  When I run the control, clicking the button causes a postback but the event is not fired.

Solution: Changed the class inheritance from WebControl to CompositeControl.  Re-compiled and it worked like a charm.

Related posts:

  1. Command and Control Social Media

  • Mike Wilson (158)
  • Leave a Reply