Quantcast
Channel: AuthorCode » ListBox control
Viewing all articles
Browse latest Browse all 9

Create Multiple select Listbox in asp.net

$
0
0

We can create only one option in ListBox control by default, but we can make this control as multiple select with the help of SelectionMode property. SelectionMode property enable us to select more than one items in the ListBox control.

Example

The following example demonstrate how we can create multiple select Listbox in asp.net

  1. <asp:ListBox ID="ListBox1" runat="server" SelectionMode="Multiple" >
  2.     <asp:ListItem Text="USA" />
  3.     <asp:ListItem Text="India" />
  4.     <asp:ListItem Text="Japan" />
  5.     <asp:ListItem Text="UK" />
  6.   </asp:ListBox>

Viewing all articles
Browse latest Browse all 9

Latest Images

Trending Articles





Latest Images