Simulate ASP.NET Page lifecycle
<p>I have an HttpHandler in which I want to render the HTML for some custom controls.</p>

<p>Currently my code looks like this:</p>

<pre><code>Page p = new Page();
var customControl = new CustomControl { Data = data, Blah = blah };
p.Controls.Add(customControl );
context.Response.Write(customControl.RenderToString());
</code></pre>

<p>The problem is that customControl (and child controls thereof) needs to do stuff in the OnInit, OnLoad and OnPreRender methods.</p>

<p>I have tried manually calling this methods through helper methods but I get various errors.   My general problem is that I need the ASP.NET page lifecycle to run on the <code>p</code> variable.  Is there any way to get that to work?</p>
