How can I achieve this? I am trying to load content from the database and fuse it together with the Content control. The progrm is some of the content has dynamic bits to it and thus would like it to be compiled on the fly. Has anyone done this sort of stuff before?
+2
A:
Not quite sure what you really need to do here?
If the content is dynamic, generate the controls for it at run time based on the data. If you then need to improve the performance, why not cache the page output?
AFAIK there would be no real benefit to dynamic compilation based on what you seem to be doing.
Try these links:
- HOW TO: Dynamically Create Controls in ASP.NET with Visual Basic .NET - obviously VB, but porting to C# should be no big deal.
- Output Caching in ASP.NET 2.0
Rob Cooper
2008-10-27 11:42:58