Using "Code-in-Front", how can I combine server-side scripts?
<p>I am working on an ASP.NET website which requires all server-side code to be done using the "code in front" model -- I have to use server-side script blocks on .aspx, .ascx or .master pages.  I would like to define a class (call it Vehicle) once within a server-side script and them import that definition on other pages or controls as needed.  Is this possible?</p>

<p>I'd like to define this class somewhere (user control?):</p>

<pre><code>&lt;script runat="server"&gt;
  Public class Vehicle
  {
    public int Id {get; set; }
    public string Name{ get; set; }
  }
&lt;/script&gt;
</code></pre>

<p>Then create an instance on site.master:</p>

<pre><code>&lt;script runat="server"&gt;
  //todo:  include the script block containing the definition of Vehicle
  public Vehicle v = new Vehicle{ Id=1, Name="Car1"};
&lt;/script&gt;
</code></pre>

<p>Then use it on default.aspx:</p>

<pre><code>&lt;script runat="server"&gt;
  Response.Write (master.v.Name);
&lt;/script&gt;
</code></pre>

<p>I know this works against ASP.NET but the point is that I can't recompile the site or deploy another assembly, I can't create .cs source files, only asp.net pages or controls.</p>
