C# 클래스 EnumEditorHtmlHelper, code

파일 보기 프로젝트 열기: shendongnian/code 1 사용 예제들

공개 메소드들

메소드 설명
DropDownListFor ( HtmlHelper, htmlHelper, Expression, expression ) : MvcHtmlString,

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

비공개 메소드들

메소드 설명
createSelectList ( Type, enumType, string selectedItem ) : IEnumerable

Creates the select list.

메소드 상세

DropDownListFor() 공개 정적인 메소드

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.
리턴 MvcHtmlString,