asp.net mvc radioButtonFor in forEach
- by George
Does anyone know why this isn't working? any source code changes would be great.
<% foreach (var i in Model.talentImages) { %>
<div style="padding:15px;">
<img src="<%: i.uri %>" width="95" height="84" alt="" style="float:left; padding:0px 20px 0px 0px" />
<div style="padding:30px 10px 10px 10px">
<%: Html.RadioButtonFor("group-" + i.uriId.ToString(), i.isApproved)%> Approved <br />
<%: Html.RadioButtonFor("group-" + i.uriId.ToString(), i.isApproved)%> Deny <br />
</div>
<hr width="0"/>
<%= Html.RadioButton("isProfileePicGroup", i.isProfilePic, false)%> Make Profile Picture <br />
</div>
<hr />
<%} %>