An error occurred during the compilation of a resource required to service this request. Please Resolve
<p><strong>Paper_Details.aspx</strong></p>

<pre><code> &lt;div class="fac_reg_txt"&gt;
    &lt;asp:Button ID="btndelete" runat="server" Text="Delete"  Width="100px" 
      Height="30px" onclick="btndelete_Click" /&gt;
      &lt;asp:Label ID="Label4" runat="server"&gt;&lt;/asp:Label&gt;
 &lt;/div&gt;
</code></pre>

<p><strong>Paper_Details.aspx.cs</strong></p>

<pre><code>protected void btndelete_Click(object sender, EventArgs e)
        {
             try
             {
                //........... Code
             }
             catch (System.Exception ex)
             {
                 MessageBox.Show(ex.Message);
             }
        }
</code></pre>

<p><em>This is the code written and i think its perfect. Event is correct. And it runs in visual studio as well. But when i upload it to my server.</em> <strong>Following Error is thrown :</strong></p>

<blockquote>
  <p>Compilation Error</p>
</blockquote>

<p>Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. </p>

<p>Compiler Error Message: CS1061: 'ASP.admin_paper_details_aspx' does not contain a definition for 'btndelete_Click' and no extension method 'btndelete_Click' accepting a first argument of type 'ASP.admin_paper_details_aspx' could be found (are you missing a using directive or an assembly reference?)</p>

<p>Source Error:</p>

<pre><code>Line 30:                     &lt;/div&gt;
Line 31:                     &lt;div class="fac_reg_txt"&gt;
Line 32:                         &lt;asp:Button ID="btndelete" runat="server" Text="Delete"  Width="100px" 
Line 33:                             Height="30px" onclick="btndelete_Click" /&gt;
Line 34:                         &lt;asp:Label ID="Label4" runat="server"&gt;&lt;/asp:Label&gt;
</code></pre>

<p>Source File: d:\dzhosts\localuser\rkinfosolutions\www.rk.somee.com\admin\Paper_Details.aspx    Line: 32 </p>
