IDI am using the following code to create a drop down list:
@for (var index = 0; index < Model.AdminSummaries.Count(); index++)
{
&
ID can be changed as described by @Arbiter. However, if you want to change the name, then I think you need to use @Html.DropDownList
rather than @Html.DropDownListFor
. This loses you any benefits of having the strong typing for the property element, but as just changing IDs means you can't access the values in a meaningful way if looking at the Request.Form
response, this may be an acceptable workaround for you.