Migrating from VB 2003 (ASP.Net) to C# 2008 ASP.Net
<p>I am converting an existing vb2003 asp.net 1.1 application to C#2008 asp.net 3.5.
I have copied the HTML onto my C# markup window (consisting of Labels, text fields &amp; buttons)</p>

<p>However, when I attepmt to "View in browser", I get the error below:</p>

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

<p>Source Error:</p>

<pre><code>Line 320:&lt;tr&gt;
Line 321:    &lt;td&gt;&lt;input type="reset" value="Reset" class="formbutton"&gt;
Line 322:    &lt;asp:button cssclass="formbutton" text="Next" id="btnSubmit" runat="server" onclick="btnSubmit_Click"/&gt;&lt;/td&gt;
Line 323:&lt;/tr&gt;
</code></pre>

<p>My code behind contains the following code:</p>

<pre><code>    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        if (ValidateHeader() &amp;&amp; ValidateFooter())
            LoadDatabase();

    }
</code></pre>

<p>Any ideas?</p>
