Error BC30456 in single page ASP.NET website
<p>I've just started working through a ASP.NET C# guide to assist me with an internship I'm starting next week.  I'm familiar with OO, but never used C# or ASP.NET.  In the beginning of this tutorial, I've created a simple webpage that is supposed to analyze the interest from an IRA account.  There are two buttons, which are tagged with event handlers that refer to the C# code-behind file.  I'm receiving the following errors from the browser, after compiling and running the program:</p>

<p>C:\Users\Kyle\Documents\Visual Studio 2010\WebSites\WebSite2\Default.aspx(49) : error BC30456: 'btnCalculate_click' is not a member of 'ASP.default_aspx'.</p>

<pre><code>        AddHandler __ctrl.Click, AddressOf Me.btnCalculate_click
                                           ~~~~~~~~~~~~~~~~~~~~~
</code></pre>

<p>C:\Users\Kyle\Documents\Visual Studio 2010\WebSites\WebSite2\Default.aspx(52) : error BC30456: 'btnClear_Click' is not a member of 'ASP.default_aspx'.</p>

<pre><code>        AddHandler __ctrl.Click, AddressOf Me.btnClear_Click
                                           ~~~~~~~~~~~~~~~~~
</code></pre>

<p>Here is my .aspx file:</p>

<pre><code>    &lt;xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;html&gt;
&lt;head runat="server"&gt;
&lt;title&gt;Chapter 2: Future Value&lt;/title&gt;
&lt;style type ="text/css"&gt;
.style1 
{
    color: #0000FF;
    font-size: x-large;
}
.style2 
{
    width:100%;
}
.style3 
{
    width: 140px;
    height: 23px;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form id="form1" runat="server"&gt;
&lt;div&gt;
&lt;span class="style1"&gt;&lt;strong&gt;401K Future Value&lt;/strong&gt;&lt;/span&gt; &lt;br /&gt; &lt;br /&gt;
&lt;table class = "style2"&gt;
    &lt;tr&gt;
            &lt;td class="style3"&gt;Montly investment&lt;/td&gt;
            &lt;td&gt;&lt;asp:DropDownList ID="ddlMonthlyInvestment" runat="server" Width="106px"&gt;&lt;/asp:DropDownList&gt;&lt;/td&gt;
        &lt;/tr&gt;

        &lt;tr&gt;
            &lt;td class="style3"&gt;Annual interest rate&lt;/td&gt;
            &lt;td&gt;&lt;asp:TextBox ID="txtInterestRate" runat="server" Width="100px"&gt;6.0&lt;/asp:TextBox&gt;&lt;/td&gt;
        &lt;/tr&gt;

        &lt;tr&gt;
            &lt;td class="style3"&gt;Number of years&lt;/td&gt;
            &lt;td&gt;&lt;asp:TextBox ID="txtYears" runat="server" Width="100px"&gt;10&lt;/asp:TextBox&gt;&lt;/td&gt;
        &lt;/tr&gt;

        &lt;tr&gt;
            &lt;td class="style3"&gt;Future Value&lt;/td&gt;
            &lt;td&gt;&lt;asp:Label ID="lblFutureValue" runat="server" Font-Bold="true"&gt;&lt;/asp:Label&gt;&lt;/td&gt;
        &lt;/tr&gt;

        &lt;tr&gt;
        &lt;td class="style3"&gt;
            &lt;asp:Button ID="Calculate" runat="server" onclick="btnCalculate_click" Text="Calculate" /&gt;
            &lt;/td&gt;
        &lt;td&gt;
            &lt;asp:Button ID="Clear" runat="server" onclick="btnClear_Click" Text="Clear" /&gt;
            &lt;/td&gt;                        
        &lt;/tr&gt;
&lt;/table&gt;


&lt;/div&gt;&lt;/form&gt;
&lt;/body&gt;  
&lt;/html&gt;
</code></pre>

<p>And here is my code-behind file:</p>

<pre><code>    using System;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;

    public partial class _Default : System.Web.UI.Page
    {

protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
        for (int i = 50; i &lt;= 500; i += 50)
            ddlMonthlyInvestment.Items.Add(i.ToString());
}

protected void btnCaluculate_Click(object sender, EventArgs e)
{
    if (IsValid)
    {
        int monthlyInvestment = Convert.ToInt32(ddlMonthlyInvestment.SelectedValue);
        decimal yearlyInterestRate = Convert.ToDecimal(txtInterestRate.Text);
        int years = Convert.ToInt32(txtYears.Text);

        int months = years * 12;
        decimal monthlyInterestRate = yearlyInterestRate / 12 / 100;

        decimal futureValue = this.CalculateFutureValue(monthlyInvestment, monthlyInterestRate, months);

        lblFutureValue.Text = futureValue.ToString("c");

    }
}

protected decimal CalculateFutureValue(int monthlyInvestment, decimal monthlyInterestRate, int months)
{
    decimal futureValue = 0;
    for (int i = 0; i &lt; months; i++)
    {
        futureValue = (futureValue + monthlyInvestment) * (1 + monthlyInterestRate);
    }
    return futureValue;
}

protected void btnClear_Click(object sender, EventArgs e)
{
    ddlMonthlyInvestment.SelectedIndex = 0;
    txtInterestRate.Text = "";
    txtYears.Text = "";
    lblFutureValue.Text = "";
}
</code></pre>

<p>}</p>

<p>Could someone please let me know why these errors are popping up?  I've retyped both of these from the source.  Could there be a setting that I might need to have changed?  I've never used VS2010, so I'm not 100% familiar with it, either.</p>

<p>Thanks in advance!</p>
