ASP.NET MVC:Why does the CheckBoxFor render an additional input tag and how can I get the value usin
- by Nikron
Hi,
In my ASP.NET MVC app I am rendering out a checkbox using the following code:
<%= Html.CheckBoxFor(i=>i.ReceiveRSVPNotifications) %>
Now I see that this renders both the checkbox input tag and a hidden input tag. The problem that I am having is when I try retrieve the value from the checkbox using the FormCollection:
…