asp.net mvc radioButtonFor in forEach

Posted by George on Stack Overflow See other posts from Stack Overflow or by George
Published on 2010-11-05T20:54:01Z Indexed on 2010/12/22 21:54 UTC
Read the original article Hit count: 1353

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 />
                    <%} %>

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about foreach