title: Can I ask for some suggestions on how to approach this,please?
body: <p>I have a field from the db called sections and I have the following checkbox control on the markup.</p>
  
  <pre><code>&lt;asp:CheckBox runat="server" ID="sections" /&gt; 
  &lt;label for="sections"&gt;Section values&lt;/label&gt;
  </code></pre>
  
  <p>Then on codebehind, I use this code to render checkbox control with value property and actual value of Sections displayed just the way I want it.</p>
  
  <pre><code>Me.sections.InputAttributes.Add("Value", "Miracle Alley")
  </code></pre>
  
  <p>My issues now are 2 fold:</p>
  
  <p>1, what is the best way to add CheckAll/UncheckAll feature to the markup so users can check a checkbox or checkboxes to display a value or values associated with checked box(es)?</p>
  
  <p>2, We would like to declare a variable and assign the value of checked box to this variable.
  For instance, if sections is checked then
  var sectionsList = sections values.</p>
  
  <p>Is this possible?</p>
  
  <p>If not, any alternative solutions?</p>
  
  <p>Thanks a lot in advance.</p>