When I set custom name attribute in HTML Helper (in this case it's a list of checkbox) using new { @Name = "MyName" }
I'm not getting true for any of the checkbox if I select then form UI on post.
But if I remove the name attribute from HTML Helper, it's working fine.
Any suggestion would be really helpful.
asp.net mvc: why is Html.CheckBox generating an additional hidden input
The above link gives me a fair idea about why this is not working if I add the name attribute. But in that case how should I achieve validation such that at least one checkbox from the group must be selected?