Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

SelectExtensions.ListBox Method

Returns a select element that lets users select one item.

  NameDescription
Public method Static member ListBox(HtmlHelper, String) Returns a select element that lets users select one item, by using the specified HTML helper and the name of the form field.
Public method Static member ListBox(HtmlHelper, String, IEnumerable<SelectListItem>) Returns a select element that lets users select one item, by using the specified HTML helper, the name of the form field, and the specified list items.
Public method Static member ListBox(HtmlHelper, String, IEnumerable<SelectListItem>, IDictionary<String, Object>) Returns a select element that lets users select one item, by using the specified HTML helper, the name of the form field, the specified list items, and the specified HMTL attributes.
Public method Static member ListBox(HtmlHelper, String, IEnumerable<SelectListItem>, Object) Returns a select element that lets users select one item, by using the specified HTML helper, the name of the form field, and the specified list items.
Top

The ListBox method renders an element that enables the user to select from a scrolling list of items. Each item in the list is a SelectListItem instance.

Community Additions

Show:
© 2014 Microsoft. All rights reserved.