title: Set CheckBox "Checked" propery in ASP repeater
body: <p>I was wondering if it's possible to set the checked propery of a checkbox, using a bool variable form the repeater's datasource?</p>
  
  <p>I've tried several ways but without any success...:</p>
  
  <pre><code>&lt;asp:Repeater ID="rpt" runat="server"&gt;
      &lt;itemTemplate&gt; 
         &lt;asp:CheckBox runat="server" CssClass="checkbox"
              Checked="&lt;%#Eval("IsDefault").ToString().ToLower()%&gt;"
              ID="isDefaultCheckBox"/&gt;
      &lt;/itemTemplate&gt;
  &lt;/asp:Repeater&gt;
  
  &lt;asp:Repeater ID="rpt" runat="server"&gt;
      &lt;itemTemplate&gt; 
         &lt;asp:CheckBox runat="server" CssClass="checkbox" 
              Checked="&lt;%# DataBinder.Eval(Container.DataItem, "IsDefault")%&gt;" 
              ID="isDefaultCheckBox"/&gt;
      &lt;/itemTemplate&gt;
  &lt;/asp:Repeater&gt;
  </code></pre>
  
  <p>IsDefault is a field in a class View:</p>
  
  <pre><code>public bool IsDefault
  </code></pre>
  
  <p>The repeater's DataSource is List.</p>