Loading ASCX control created dynamically (via code)
问题 I am creating Web User Controls via code (my C# code write-out markup, code-behind and designer files to disk on a callback). The controls are created all fine. I can add them to my web-project and put them on a page. When I try to load the control using LoadControl(path) it says: Unable to load type 'MyNameSpace.UseControlClass' which is because control is not yet compiled. But my requirement is to load controls dynamically without recompiling the solution. How can I compile the user control