0

In our ASP.NET application we allow other developers to write asp.net code and we compile their code into in-memory dll.

As part of this we would like to be able to compile ASCX controls into DLL at runtime and then later on load them into Aspx Pages.

I already know how to load the Ascx control from a path (which does not work in my case, most likely the ascx file content will be in DB) and as long as I have the Control object i can add it to the Page control hierarchy.

So the key for me is how to compile the ascx files produced at runtime into a DLL (in-momery) so then when they are requested I would be able to add them to the Aspx pages.

Any suggestions?

Jean-François Fabre
  • 137,073
  • 23
  • 153
  • 219
sam360
  • 1,121
  • 3
  • 18
  • 37

1 Answers1

0

I think you should start from ParseControl. And here you will find the example project on codeproject.com.

Alex Dn
  • 5,465
  • 7
  • 41
  • 79