Partager via


SelectExtensions.ListBoxFor Method

Include Protected Members
Include Inherited Members

Returns an HTML select element for each property in an object that is represented by an expression.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
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