%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> <%: Html.LabelFor(x => x.ContactPoints, "Contact:") %> Add <% for (int i = 0; i < Model.ContactPoints.Count; i++) { %> <%: Html.DropDownListFor( x => x.ContactPoints[i].Type, new SelectList(Lists.SleisUserContactTypes, Model.ContactPoints[i].Type) as IEnumerable, new { @class = "text-input small-input contact-type" }) %> <%: Html.TextBoxFor(x => x.ContactPoints[i].Value, new { @class = "text-input half-input", @maxlength = "255" }) %> Delete <%: Html.ValidationMessageFor(x => x.ContactPoints[i].Value) %> <% } %>