SelectExtensions Methods

Include Protected Members
Include Inherited Members

Methods

  Name Description
Public methodStatic member DropDownList(HtmlHelper, String) Returns a single-selection select element using the specified HTML helper and the name of the form field.
Public methodStatic member DropDownList(HtmlHelper, String, IEnumerable<SelectListItem>) Returns a single-selection select element using the specified HTML helper, the name of the form field, and the specified list items.
Public methodStatic member DropDownList(HtmlHelper, String, String) Returns a single-selection select element using the specified HTML helper, the name of the form field, and an option label.
Public methodStatic member DropDownList(HtmlHelper, String, IEnumerable<SelectListItem>, IDictionary<String, Object>) Returns a single-selection select element using the specified HTML helper, the name of the form field, the specified list items, and the specified HTML attributes.
Public methodStatic member DropDownList(HtmlHelper, String, IEnumerable<SelectListItem>, Object) Returns a single-selection select element using the specified HTML helper, the name of the form field, the specified list items, and the specified HTML attributes.
Public methodStatic member DropDownList(HtmlHelper, String, IEnumerable<SelectListItem>, String) Returns a single-selection select element using the specified HTML helper, the name of the form field, the specified list items, and an option label.
Public methodStatic member DropDownList(HtmlHelper, String, IEnumerable<SelectListItem>, String, IDictionary<String, Object>) Returns a single-selection select element using the specified HTML helper, the name of the form field, the specified list items, an option label, and the specified HTML attributes.
Public methodStatic member DropDownList(HtmlHelper, String, IEnumerable<SelectListItem>, String, Object) Returns a single-selection select element using the specified HTML helper, the name of the form field, the specified list items, an option label, and the specified HTML attributes.
Public methodStatic member DropDownListFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IEnumerable<SelectListItem>) Returns an HTML select element for each property in the object that is represented by the specified expression using the specified list items.
Public methodStatic member DropDownListFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IEnumerable<SelectListItem>, IDictionary<String, Object>) Returns an HTML select element for each property in the object that is represented by the specified expression using the specified list items and HTML attributes.
Public methodStatic member DropDownListFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IEnumerable<SelectListItem>, Object) Returns an HTML select element for each property in the object that is represented by the specified expression using the specified list items and HTML attributes.
Public methodStatic member DropDownListFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IEnumerable<SelectListItem>, String) Returns an HTML select element for each property in the object that is represented by the specified expression using the specified list items and option label.
Public methodStatic member DropDownListFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IEnumerable<SelectListItem>, String, IDictionary<String, Object>) Returns an HTML select element for each property in the object that is represented by the specified expression using the specified list items, option label, and HTML attributes.
Public methodStatic member DropDownListFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IEnumerable<SelectListItem>, String, Object) Returns an HTML select element for each property in the object that is represented by the specified expression using the specified list items, option label, and HTML attributes.
Public methodStatic member ListBox(HtmlHelper, String) Returns a multi-select select element using the specified HTML helper and the name of the form field.
Public methodStatic member ListBox(HtmlHelper, String, IEnumerable<SelectListItem>) Returns a multi-select select element using the specified HTML helper, the name of the form field, and the specified list items.
Public methodStatic member ListBox(HtmlHelper, String, IEnumerable<SelectListItem>, IDictionary<String, Object>) Returns a multi-select select element using the specified HTML helper, the name of the form field, the specified list items, and the specified HMTL attributes.
Public methodStatic member ListBox(HtmlHelper, String, IEnumerable<SelectListItem>, Object) Returns a multi-select select element using the specified HTML helper, the name of the form field, and the specified list items.
Public methodStatic member ListBoxFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IEnumerable<SelectListItem>) Returns an HTML select element for each property in the object that is represented by the specified expression and using the specified list items.
Public methodStatic member ListBoxFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IEnumerable<SelectListItem>, IDictionary<String, Object>) Returns an HTML select element for each property in the object that is represented by the specified expression using the specified list items and HTML attributes.
Public methodStatic member ListBoxFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, IEnumerable<SelectListItem>, Object) Returns an HTML select element for each property in the object that is represented by the specified expression using the specified list items and HTML attributes.

Top

See Also

Reference

SelectExtensions Class

System.Web.Mvc.Html Namespace