Tag: dropdownlistfor

  • Create MVC DropDownList from an Enum

    Like many requested features, MVC 5 now has a built-in function to provide an Enum object and automatically build a dropdown list using the standard HtmlHelper. If you’re unfortunate and on an older version of MVC, here is an HtmlExtension that performs the same thing.

    (more…)