I have a checkbox and button:
@using(Html.BeginForm())
{
I had trouble getting this to work and this is the solution I came up with. I'm showing it with an html helper.
@Html.CheckBoxFor(model => model.showAll, new { @class = "form-control", Name = "showAll"})
This is where I kept falling down and the following works.
bool MyBoolValue= (collection["showAll"] ?? "").Equals("true", StringComparison.CurrentCultureIgnoreCase);