I am trying to add a class assignment to the following line of code,
@Html.DropDownListFor(model => model.Business, new SelectList(
new List<Object>{
new { ... },
new { ... },
new { ... }
},
"value",
"text",
2))
One answer given on this site (HTML.DropDownListFor class assignment) suggested adding it as an overload method that takes a 'object htmlAttributes' as the last parameter. However, I can not see this parameter as an option so I'm a bit confused how this is possible.
In my example I am using every overload method possible and there is none for htmlattributes.