ASP Net Controls ASP.Net Tutorial

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

    protected void chkNewsletter_CheckedChanged(object sender, EventArgs e)
    {
        lblResult.Text = chkNewsletter.Checked.ToString();
    }



    CheckBox AutoPostBack


    
    

            id="chkNewsletter"
        Text="Receive Newsletter?"
        AutoPostBack="true"
        OnCheckedChanged="chkNewsletter_CheckedChanged"
        Runat="server" />
    
            id="lblResult"
        Runat="server" />