ASP.NET Page directive: inherit codebehind from alternate assembly?
<p>Is it possible to set the Inherits attribute of an ASPX Page directive to a class in an arbitrary assembly?</p>

<p>I need to modify an ASP.NET (1.1) application for which the source code was lost. In a new assembly (foo2.dll) I've created a replacement code-behind class that derives from the original class in the site's code-behind assembly (foo.dll). It seems easy enough to set the Inherits attribute of the Page directive to the new class name, but when I do that the web server gives me <code>Could not load type 'Foo2.checkout2'</code>. I am referencing the new assembly in the <code>&lt;assemblies&gt;</code> section of Web.config.</p>

<p>I don't see anything in the documentation to indicate that this scenario is unsupported, but I'm not certain that it is, either.</p>

<p>Original</p>

<pre><code>&lt;%@ Page Inherits="Foo.checkout" language="c#" Codebehind="checkout.aspx.cs" AutoEventWireup="false" %&gt;
</code></pre>

<p>New</p>

<pre><code>&lt;%@ Page Inherits="Foo2.checkout2" CodeFile="checkout2.aspx.cs" CodeFileBaseClass="Foo.checkout" language="c#" Codebehind="checkout.aspx.cs" AutoEventWireup="false" %&gt;
</code></pre>
