C# Class EnumEditorHtmlHelper, code

Afficher le fichier Open project: shendongnian/code Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
createSelectList ( Type, enumType, string selectedItem ) : IEnumerable

Creates the select list.

Method Details

DropDownListFor() public static méthode

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.
Résultat MvcHtmlString,