protected void Button1_Click(object sender, EventArgs e)
{
}
Note that this code will be added in the Default.aspx.cs Window.
protected void Button1_Click(object sender, EventArgs e)
{
    int n = int.Parse(TextBox1.Text);
    n = n + 1;
    TextBox1.Text = n.ToString( );
}
Before uploading a page to ectweb2, the C# code must be moved from the Default.aspx.cs file to the Default.aspx file.
<script runat=server> </script>
<script runat=server>
protected void Button1_Click(object sender, EventArgs e)
{
    int n = int.Parse(TextBox1.Text);
    n = n + 1;
    TextBox1.Text = n.ToString( );
}
</script>
<%@ Page Language=C# %>
<configuration>
    <system.web>
        <customErrors mode=Off />
    </system.web>
</configuration>
Upload it to your home directory that contains your index.htm of
default.htm file.  The Web.config file tells the ASP.Net interpreter
to give meaningful compliler error messages.