I want to make use of "complex" usercontrols with more than one control element within. Its the same control I will reuse in the list and I have a PlaceHolder control for it already.
I can add the control with LoadControl(path to .ascx) - no problem.
I can thru my custom properties get/set access the embedded Labels too, so I can initialize each control perfectly.
But when adding LinkButtons I get into trouble/problems.
When I click the button, I do get a "submit" of the page rendering the controls, but the control's own button event does not seem to fire (or at least PageLoad on the parent page seems to fire first?) - I cant figure out where my event goes or where to look for a name/ID or parametre for this button.
Howcome or what am I doing wrong here?
I've made a "fake button" now by using a label more with a "hardcoded A HREF" with an ID in the URL, but I would like to learn what event I need to catch and where or how to init the button, because I want to be able to use "default ASP.NET" controls for these usercontrols (hopefully without too much patchwork-coding)...