title: asp:checkbox color change when checked or unchecked
body: <p>I have a checkbox inside a GridView and I want to change its color to <strong>red</strong> when unchecked and to <strong>green</strong> when checked.</p>
  
  <p>How can I do this ?</p>
  
  <pre><code>&lt;ItemTemplate&gt;
     &lt;asp:CheckBox ID="checkboxAttendanceStatus" BackColor="Red" runat="server" AutoPostBack="true" /&gt;
  &lt;/ItemTemplate&gt;
  </code></pre>