Hi All,
I have a IHttpModule to serve up .aspx page dynamically, this is so I can pack them into a DLL and drop it into an existing web site and serve up my pages.
I have a class MyPage derived from System.Web.UI.Page which has a .aspx, .aspx.cs and a aspx.designer.cs file.
When I try to instantiate the class I.e. MyPage myNewPage = MyPage(), all of the child controls are null...
I then attempt to render that page output using Server.Execute(myNewPage) in the BeginRequest event of the IHttpModule.
I know I can compile the page and use reflector to get the compiled class that's built out, but is there a cleaner way to do this?
Or even a better approach to what I'm doing?
Thanks, Goosey