Export (0) Print
Expand All

SelectExtensions.ListBoxFor Method

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.

  Name Description
Public method Static 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 method Static 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 method Static 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
Show:
© 2015 Microsoft