Use ASP.NET in a way similar to PHP
<p>I have been using PHP for a long time, but I want to move to C#. However, I don't care much for web controls and the template system. Don't get me wrong, it is good for many projects, but not all. Sometimes I want to use my own template system </p>

<p>I just want to run my code on every page request and print some HTML, CSS or whatever. Just something like Response.Write() or PHPs "echo" without all the templates and controls. What is the best way to achieve this?</p>

<p>Edit:</p>

<p>This is how I would like it to work:</p>

<pre><code>private void Page_Request(object sender, EventArgs e)
{
    // Do my stuff here

    Response.Write(myhtml);
}
</code></pre>
