Basically what the title says:
This must happen without having a submit button. This is what I got, but have no idea how to go further:
View
<% using (Html.BeginForm("UpdateReleaseState", "Articles", new{reference=Model.Reference, CheckboxState=true})) {%>
<%=Html.CheckBox("CheckboxState", Model.DoNotCheckReleaseState)%> Do not check release state
</div>
Action
[HttpPost]
public ActionResult UpdateReleaseState(Guid reference, bool CheckboxState)
{
throw new NotImplemtedException();
}
In my view I am trying to pass the value of the Checkbox, but dont know what to provide as parameter.Currently it is check=true