ListBox ASP.NET Server Control
The ListBox server control is very similar to the DropDownList, but differs in its display. You can have more than one item at a time shown to the user. The ListBox also enables users to select more than one item at time. For example, if you have a site that delivers news to its users you can allow users to select the type of news they want (for example: sports, world) using the ListBox.
Multiple item selection is a behavior over which you have control. By default the ListBox allows users to select only a single item in the list, but by setting the ListBox.SelectionMode attribute to Multiple multiple item selection is enabled. The following lists the two values you can use for the SelectionMode attribute:
Single ...
Get Programming Data-Driven Web Applications with ASP.NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.