@Html.DropDownList width
The second argument of the DropDownList helper must be an IEnumerable<SelectListItem>. You are passing a string (an empty one to be more precise). So in order to use this helper you will have to respect its signature: @Html.DropDownList( “ListId”, Enumerable.Empty<SelectListItem>(), new { style = “width: 250px;” } ) Obviously generating an empty dropdown list is … Read more