Include a class in inline code block in asp.net
<p>I'm playing around with inline code blocks in asp.net.  Can somebody tell me why the following code doesn't work?</p>

<pre><code>&lt;%@ Language="C#" %&gt;
&lt;%
    Response.Write(TestClass.ShowMessage());

    public class TestClass
    {
     public static string ShowMessage()
     {
      return "This worked!!";
     }
    }
%&gt;
</code></pre>

<p>I get the following error message: CS1513: } expected</p>
