These tutorials demonstrate selected features in ASP.NET version 2.0, but they are compatible with later versions of ASP.NET as well. For the current documentation, see the ASP.NET portal on the MSDN Web site.

 

 

   Welcome   |   ASP.NET   |   Web Services   |   Class Browser   
  |   I want my samples in...      

ASP.NET Quickstart Tutorials

ListBox

The ListBox control provides a single-selection or multiple-selection list. To enable multiple selection, set the SelectionMode property to Multiple.
The following sample illustrates using a simple ListBox control.

VB ListBox1.aspx
Run Sample View Source

The following sample illustrates using data binding with a ListBox control.

VB ListBox2.aspx
Run Sample View Source