Web Deployment
<p>We had an asp.net 1.1 application that we recently migrated to 3.5. We are facing some problems when we do code modification on the migrated application. Here is what is happening</p>

<ol>
<li>In the asp.net 1.1 application we have the page directive codebehind="ePC.aspx.cs". This migrated fine.</li>
<li>We made some code changes to the .cs file. Say for example, we added a button and added the event handler to the button.</li>
<li>This new functionality was not getting executed properly.</li>
<li>We changed the codebehind directive to codefile directive</li>
<li>Now it is working fine. But during deployment, it asks that the .cs file also be deployed along with the aspx page. We are not sure why this is happening.</li>
</ol>

<p>I have attached an example page directive</p>

<p>In VisualStudio with CodeFile</p>

<pre><code>&lt;%@ Page language="c#" Codefile="ePC.aspx.cs" AutoEventWireup="True"   Inherits="SPUniversal.Web.ePC" %&gt;
</code></pre>

<p>After publishing the website</p>

<pre><code>&lt;%@ page language="c#" autoeventwireup="True" inherits="SPUniversal.Web.ePC, App_Web_eu_mdesx" %&gt;
</code></pre>

<p>The *App_Web_eu_mdesx* got generated automatically in the published website. I don't understand what is going on here.  Can you explain?</p>
