ASP.NET ListBox SelectionMode property
Definition and Usage
SelectionMode property is used to get or set the user to select the way ListBox items.
grammar
<asp:ListBox SelectionMode="mode" runat="server">
Some Content
</asp:ListBox>
Some Content
</asp:ListBox>
属性 | 描述 |
---|---|
mode | 规定用户选择 ListBox 项目的方式。 可能的值:
|
Examples
The following examples set SelectionMode property of the ListBox control:
<form runat="server">
<asp:Calendar id="cal1" runat="server"
SelectionMode="Multiple" />
</form>
<asp:Calendar id="cal1" runat="server"
SelectionMode="Multiple" />
</form>
The demonstration >>
ListBox Control