Fog Creek Software
Discussion Board




Welcome! and rules

Joel on Software

ASP.NET: EventBinding to controls added at runtime

After much googling, I will resort to sharing my trials here:

My ASP.NET application is a single ASPX page which loads ASCX controls at runtime.  All of my user controls that contain DataLists work fine.  Two of my controls that contain Buttons or LinkButtons do not capture the click event.

Any suggestions where I should start looking?

Jason Watts
Thursday, September 25, 2003

Another thing, when I load ONLY the 'offending' control on a page, it works fine.  Obviously there is some conflicts with other controls.

Jason Watts
Thursday, September 25, 2003

Are you aware of the INamingContainer interface.
I had similar problems where events would not be fired.
And that was the way to solve it.

Tony
Saturday, September 27, 2003

*  Recent Topics

*  Fog Creek Home