Why is the asp.net checkbox not disabled?
<p>I am trying to set the disabled property for my <code>CheckBox</code> to true. However, when I do a postback the <code>CheckBox</code> is still enabled?</p>

<p><strong>HTML:</strong></p>

<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;

&lt;script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"&gt;&lt;/script&gt;

&lt;head runat="server"&gt;
    &lt;title&gt;&lt;/title&gt;
    &lt;script&gt;
        $(document).ready(
            function () {
                $("#CheckBoxList1_0").attr('disabled',true);
            }
    );
    &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;form id="form1" runat="server"&gt;
    &lt;div&gt;
        &lt;asp:CheckBoxList ID="CheckBoxList1" runat="server"&gt;
            &lt;asp:ListItem&gt;een&lt;/asp:ListItem&gt;
            &lt;asp:ListItem&gt;twee&lt;/asp:ListItem&gt;
            &lt;asp:ListItem&gt;drie&lt;/asp:ListItem&gt;
        &lt;/asp:CheckBoxList&gt;
    &lt;/div&gt;
    &lt;asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" /&gt;
    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p><strong>c#:</strong></p>

<pre><code> protected void Button1_Click(object sender, EventArgs e)
        {
            if (!CheckBoxList1.Items[0].Enabled)
            {
                Response.Write("it is disabled");

            }
        }
</code></pre>
