Include a c# file in aspx page
<p>I have an aspx page that has a @Page directive which points to a c# class. e.g.</p>

<pre><code>&lt;@ Page Language="C#" EnableSessionState="true" ValidateRequest="False" Inherits="MyClass" %&gt;
</code></pre>

<p>MyClass extends Page, which is the code behind class for that aspx page.</p>

<p>Now I want to add another class to the aspx page.  This class does some processing and will redirect the user to another page if certain conditions are met.  It will be called before the above directive.  I tried adding another @Page directive, but gotten an unknown error (literally).  I'm thinking that there can only be one code behind class per aspx page so I got the error when I added another one.  Googling such question didnt really help me with the answer.</p>

<p>So, how do I add another c# class to the same aspx page?</p>

<p>Thanks.</p>
