C# Class EnumEditorHtmlHelper, code

Datei anzeigen Open project: shendongnian/code Class Usage Examples

Public Methods

Method Description
DropDownListFor ( HtmlHelper, htmlHelper, Expression, expression ) : MvcHtmlString,

Creates the DropDown List (HTML Select Element) from LINQ Expression where the expression returns an Enum type.

Private Methods

Method Description
createSelectList ( Type, enumType, string selectedItem ) : IEnumerable

Creates the select list.

Method Details

DropDownListFor() public static method

Creates the DropDown List (HTML Select Element) from LINQ Expression where the expression returns an Enum type.
public static DropDownListFor ( HtmlHelper, htmlHelper, Expression, expression ) : MvcHtmlString,
htmlHelper HtmlHelper, The HTML helper.
expression Expression, The expression.
return MvcHtmlString,