469,953 Members | 2,271 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,953 developers. It's quick & easy.

Multiple selections in dropdownlist

Hi all,

may be an easy question: How can I allow multiple selections in a
dropdownlist?

Thanks
Steffen

Nov 19 '05 #1
2 1476
You can't.

You have to use the listbox.
http://beta.asp.net/QUICKSTART/aspne...d/listbox.aspx

Hope this helps,
Arjen
"Steffen Loringer" <st**************@freenet.de> schreef in bericht
news:3m*************@news.dfncis.de...
Hi all,

may be an easy question: How can I allow multiple selections in a
dropdownlist?

Thanks
Steffen

Nov 19 '05 #2
"Steffen Loringer" <st**************@freenet.de> wrote in message
news:3m*************@news.dfncis.de...
may be an easy question: How can I allow multiple selections in a
dropdownlist?


An <asp:DropDownList /> web control is a combination of a dropdown and a
listbox and, as such, allows only one selection to be selected.

What you need is the <asp:ListBox /> web control instead, with its
SelectionMode set to "Multiple". Then, your users make multiple selections
by using the Control and Shift keys in combination with the mouse.
Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Craig B. | last post: by
reply views Thread by bill yeager | last post: by
2 posts views Thread by dhnriverside | last post: by
10 posts views Thread by ads | last post: by
OuTCasT
2 posts views Thread by OuTCasT | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.