title: checkboxlist items as checked by default in codebehind asp.net
body: <p>In my page I have a <code>CheckBoxList</code> control and I have 7 items on it. I would like to set those 7 items as checked in my <code>Page_load</code> codebihind.</p>
  
  <p>my page:</p>
  
  <pre><code>&lt;asp:CheckBoxList ID="WeeklyCondition" runat="server"&gt;
      &lt;asp:ListItem Value="1"&gt;Sat&lt;/asp:ListItem&gt;
      &lt;asp:ListItem Value="2"&gt;Sun&lt;/asp:ListItem&gt;
      &lt;asp:ListItem Value="3"&gt;Mon&lt;/asp:ListItem&gt;
      &lt;asp:ListItem Value="4"&gt;Tue&lt;/asp:ListItem&gt;
      &lt;asp:ListItem Value="5"&gt;Wed&lt;/asp:ListItem&gt;
      &lt;asp:ListItem Value="6"&gt;Thu&lt;/asp:ListItem&gt;
      &lt;asp:ListItem Value="7"&gt;Fri&lt;/asp:ListItem&gt;
  
  &lt;/asp:CheckBoxList&gt;
  </code></pre>