title: CheckBox lists in ASP.NET MVC and bind it back to controller
body: <pre><code> Html.CheckBox("SelectedStudents", false, new { @class = "check-item", id = x.Id, value = x.Id })
  </code></pre>
  
  <p>which produce</p>
  
  <pre><code>&lt;input checked="checked" class="check-item" id="4507" name="SelectedStudents" value="4507" type="checkbox"&gt;
  
  &lt;input checked="checked" class="check-item" id="4507" name="SelectedStudents" value="4508" type="checkbox"&gt;
  
  &lt;input checked="checked" class="check-item" id="4507" name="SelectedStudents" value="4509" type="checkbox"&gt;
  </code></pre>
  
  <p>In mvc model I have</p>
  
  <pre><code>public IEnumerable&lt;string&gt; SelectedStudents { get; set; }
  </code></pre>
  
  <p>but when I post back, SelectedStudents are always null. Why?
  In this howto <a href="http://benfoster.io/blog/checkbox-lists-in-aspnet-mvc" rel="nofollow">http://benfoster.io/blog/checkbox-lists-in-aspnet-mvc</a>
  is written:</p>
  
  <blockquote>
    <p>The ASP.NET MVC modelbinder is smart enough to map the selected items
    to this property.</p>
  </blockquote>
  
  <p>but in my example is always null. Why? How to write more checkboxes and bind it back</p>