title: @Html.CheckBoxFor returns Cannot implicitly convert type 'string' to 'bool' error
body: <p>all</p>
  
  <p>I am trying to use @Html.CheckBoxFor.
  Here is my code:</p>
  
  <p>Model:</p>
  
  <pre><code>public bool WC0001 { get; set; }
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>@using (Html.BeginForm("ListSearch", "Committee", FormMethod.Get))
  {
      @Html.CheckBoxFor(model =&gt; model.WC0001)&amp;nbsp;&lt;label for="WC0001" class="mrg_r20"&gt;Development&lt;/label&gt;
  }
  </code></pre>
  
  <p>I am using WebGrid as well.
  When I click page 2, I get this error.
  Cannot implicitly convert type 'string' to 'bool'</p>
  
  <p>So I looked at the url.
  It is "<a href="http://localhost:28685/Committee/ListSearch?WC0001=true%2cfalse&amp;page=2" rel="nofollow noreferrer">http://localhost:28685/Committee/ListSearch?WC0001=true%2cfalse&amp;page=2</a>"</p>
  
  <p>Why do I get WC0001 parameter as true%2cfalse?
  And what is the workaround for this?
  It didn't happen when I used to post the form.
  But since I changed it as FormMethod.Get because of WebGrid, it started to occur.
  Please somebody help me.</p>
  
  <p>EDIT:
  <img src="https://i.stack.imgur.com/P7mV8.png" alt="enter image description here"></p>
  
  <p>This is what happens, when reload the page.</p>
  
  <p>EDIT:</p>
  
  <p>Here is my action code:</p>
  
  <pre><code>[HttpGet]
  public ActionResult ListSearch(Kuksiwon.Models.Committee profile, FormCollection collection)
  {
      DataTable _dt = _bp.DtReturnS(false
          , "WSP_KW100_R1"
          , profile.APJIKJONGCODE == null ? "" : profile.APJIKJONGCODE
          , profile.APKUKSICODE == null ? "" : profile.APKUKSICODE
          , profile.CTNAME == null ? "" : profile.CTNAME
          , collection["CTSEXList"] == null ? "" : collection["CTSEXList"].ToString()
          , profile.CTOADDRESS1 == null ? "" : profile.CTOADDRESS1
          , profile.CTOADDRESS2 == null ? "" : profile.CTOADDRESS2
          , profile.CTUNIVCODE1 == null ? "" : profile.CTUNIVCODE1
          , profile.CTHOSPCODE1 == null ? "" : profile.CTHOSPCODE1
          , profile.CTETCNAME == null ? "" : profile.CTETCNAME
          , profile.CTUNIVDIV1 == null ? "" : profile.CTUNIVDIV1
          , profile.CTUNIVJIKUP1 == null ? "" : profile.CTUNIVJIKUP1
          , profile.CTEMAIL == null ? "" : profile.CTEMAIL
          , profile.WC0001 ? "WC0001" : ""
          , profile.WC0002 ? "WC0002" : ""
          , profile.WC0003 ? "WC0003" : ""
          , profile.WC0004 ? "WC0004" : ""
          , profile.WC0005 ? "WC0005" : ""
          , profile.WC0006 ? "WC0006" : ""
          , profile.WC0007 ? "WC0007" : ""
          , profile.WC0008 ? "WC0008" : ""
          , profile.WCNONE ? "1" : "0"
          , profile.RSNAME == null ? "" : profile.RSNAME
          , profile.BKNAME == null ? "" : profile.BKNAME
          , profile.CTSUBJECT == null ? "" : profile.CTSUBJECT
          , profile.CTCOLLEGE == null ? "" : profile.CTCOLLEGE
      );
      ViewBag.ListSearch = _dt;
  
      profile.CTSEXList = profile.CommonCodeList("SX", "1");
      return View(profile);
  }
  </code></pre>