HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

ASP.NET SelectionMode Property


ListBox Control Reference Complete ListBox Control Reference

Definition and Usage

The SelectionMode property is used to get or set how a user is allowed to select ListBox items.

Syntax

<asp:ListBox SelectionMode="mode" runat="server">
Some Content
</asp:ListBox>

Attribute Description
mode Specifies how a users is allowed to select items.

Possible values:

  • Single - Default. Multiple items can not be selected
  • Multiple - Multiple items can be selected


Example

The following example sets the SelectionMode of a ListBox control:

<form runat="server">
<asp:Calendar id="cal1" runat="server"
SelectionMode="Multiple" />
</form>

Show example »

ListBox Control Reference Complete ListBox Control Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE