title: Generate Dynamically Checkboxes, And Select Some of them as Checked
body: <p>So my problem goes like this,</p>
  
  <p>I have two lists </p>
  
  <p>LIST A contains.</p>
  
  <ol>
  <li>Item 1</li>
  <li>Item 2</li>
  <li>Item 3</li>
  <li>Item 4</li>
  <li>Item 5</li>
  </ol>
  
  <p>And List B Contains</p>
  
  <ol>
  <li>Item 1 </li>
  <li>Item 2</li>
  <li>Item 3</li>
  <li>Item 4</li>
  <li>.....</li>
  <li>....</li>
  <li>Item 10</li>
  </ol>
  
  <p>All i want to do is Generate Checkboxes dynamically in MVC Razor View for all the items in B, and of those checkboxes, check(select) all the checkboxes for all the items in A.
  As A will always be a subset of B.</p>
  
  <p>And then a user can check-uncheck any boxes, and those values can be passed to controller for Saving purposes. The List A will be updated with new values, that user selects.</p>
  
  <p>Any Help ?</p>
  
  <p><strong>UPDATE 1:</strong>
  I am able to get all the items in Model.CheckboxSelections in view. I don't want to use a partial view. I am trying something like following, but something is still missing.</p>
  
  <pre><code>         @for (int i = 0; i &lt; Model.CheckboxSelections.Count; i++)
          {
  @Html.CheckBox(Model.CheckboxSelections[i].Sku.ToString(), Model.CheckboxSelections[i].IsChecked.ToString())
       }
  </code></pre>