checkbox checked not appearing as checked in controller

Posted by user281180 on Stack Overflow See other posts from Stack Overflow or by user281180
Published on 2010-04-30T10:53:34Z Indexed on 2010/04/30 10:57 UTC
Read the original article Hit count: 235

Filed under:

I have the following code in my view

<tr><td><%=Html.Hidden("ProjectID["+(count)+"]",item.ProjectID)%><%=item.ProjectName%></td><td><input type="checkbox"  name="Name[<%=count%>]" /></td></tr>

In my controller, the checkboxes value appear false depsite having been checked in on the web page.

how can I correct that?

© Stack Overflow or respective owner

Related posts about asp.net-mvc