ASP.NET Content page dynamic content comes out at the top of the HTML output
<p>I'm very new to ASP.net.  I have a c# content page, in which I want to inset this code half way down within the HTML:</p>

<pre><code>&lt;%
HttpResponse r = Response;
r.Write(HttpContext.Current.Request.ServerVariables["SERVER_NAME"]); 
%&gt;
</code></pre>

<p>But when I view the page, this content comes out first, before even the  tag.</p>

<p>Any ideas on how to get this code inline instead?</p>

<p>Thanks!</p>

<p><strong>EDIT</strong>
I'd just like to add a note to all who answered this question to explain what you've done.
You spared your valuable time to help me, a stranger to you, solve a difficult problem at work, which allowed me to get out of the office on Friday night, just in time to catch the last bus to my home 50 miles away, and see my wife who was sick in bed.  You didn't just answer my question, you made my day SO much better.  THANK YOU so much!</p>

<p>Steven</p>
