Takes a dictionary of values and turns it into a SelectListItems enumeration. Converts the dictionary keys into the value and the dictionary value into the text.
public static IEnumerable<SelectListItem> SelectListItemsFromDictionary(IDictionary dict)
Parameters
dict
Remarks
Assumes the dictionary keys and values can be turned into strings using ToString()
See also:
Class MvcHtmlUtils© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic