ASP.NET SelectionMode Property
Definition and Usage
The SelectionMode property is used to get or set the way users select ListBox items.
Syntax
<asp:ListBox SelectionMode="mode" runat="server"> some content </asp:ListBox>
Property | Description |
---|---|
mode |
Specify the way users select ListBox items. Possible Values:
|
Example
The following example sets the SelectionMode property of the ListBox control:
<form runat="server"> <asp:Calendar id="cal1" runat="server"> SelectionMode="Multiple" /> </form>
Example
- Set the ListBox Control's SelectionMode