HTML Controls ASP.Net Tutorial

<%@ Page Language="C#" %>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    protected void Button_Click(object sender, EventArgs e)
    {
        Button btn = (Button)sender;
        btn.Text = (Int32.Parse(btn.Text) + 1).ToString();
    }



    Button Counters


    
    

    First Counter:
            id="Button1"
        Text="0"
        OnClick="Button_Click"
        Runat="server" />
    
    Second Counter:
            id="Button2"
        Text="0"
        OnClick="Button_Click"
        Runat="server" />