I'm using Oracle and I have this in my model
public string Completed { get; set; }
I guess there's no bool in Oracle. I tried
@Html.CheckBoxFor(model => model.completed)
And
@Html.CheckBox("Completed")
I'm using Oracle and I have this in my model
public string Completed { get; set; }
I guess there's no bool in Oracle. I tried
@Html.CheckBoxFor(model => model.completed)
And
@Html.CheckBox("Completed")
This is what worked for me
<input id="completed" type="checkbox" value="Y" name="completed">
<input type="hidden" value="N" name="completed">