title: How to get the boolean value of checkbox in ASP.net MVC 4
body: <p>I have a checkbox in .cshtml page;</p>
  
  <pre><code>@Html.CheckBox("All", new { @class = "chkBox"})
  </code></pre>
  
  <p>I want to get the boolean value of this checkbox in my controller class, for that I have tried</p>
  
  <pre><code>bool all = Convert.ToBoolean(collection["All"]);
  </code></pre>
  
  <p>where <code>collection</code> is the object of <code>FormCollection</code> Class.<br>
  But I am getting value of the checkbox as "<code>all</code>", I don't know how to get the checked or unchecked value using formcollection object.</p>
  
  <p>If anyone have any Idea then please tell me. Thanks.</p>