I'm using a 3rd party control which features a container that can only be filled with content using its InnerHTML property - controls can't be added to it in code. I have a .ASCX control I'd like to be able to use inside this container, and I can use RenderControl to get the appropriate HTML, but as I suspected would happen I can't seem to get events related to the ASCX to fire. I'd hoped that the control would render with the appropriate client-side code to perform the appropriate action, but that doesn't seem to be the case. (The hrefs rendered from linkbuttons in the ASCX just do: "javascript:__doPostBack('InlineDataList$ctl00$ItemName','')" )
My code looks something like this:
InlineList EntityList = (InlineList)LoadControl("~/UserControls/InlineList.ascx");
StringBuilde ...
Go to the complete details ...