I have a few checkboxes values of which are posted to action, and when action calls the view again the checkboxes are checked according to their previous state:
<div class="D2">@Html.CheckBox("int", false, new { id = "int" })</div>
<div class="D2">@Html.CheckBox("ext", false, new { id = "ext" })</div>
<div class="D2">@Html.CheckBox("none", false, new { style = "visibility:hidden", id = "none" }
</div>
Action:
public ActionResult Images(bool? int, bool? ext, bool? none)
return View();
But I want the third theckbox ALWAYS to be unchecked, while the other ones should keep the settings. How can I achieve that please?
falseand it still appears checked!?