I wonder if anybody could help me out with compiling and initialising
an ASP.NET page into memory. I want to be able to create an instance of
the page using something along the lines of:
Dim o As TestPage = New TestPage ' TestPage is just your avereage ASPX page.
I know at this stage I can use reflection to iterate the classes
properties and return their values. However if I call o.Controls.count
this is always 0. I guess this is because the page hasn't been through
it's initialisation steps that it would usually go through if requested
by a client. Can anybody help me initialise the page properly so that
the o.Controls property is populated and I'm able to access the control
tree in the same way you could do so in say the Page_Load method.
View Complete Post