How to select multiple items in a multiple dropdownlist
-
Hi, I am using a multiple dropdownlist and want to select more than one items coming from database.. Let say, the multiple dropdown has following items : 1 2 3 4 5 and from database an array with values 2 and 5 is coming. string[] val = {2, 5}; I want to select 2 and 5 in the dropdownlist. Please help. Suman Singh
-
Hi, I am using a multiple dropdownlist and want to select more than one items coming from database.. Let say, the multiple dropdown has following items : 1 2 3 4 5 and from database an array with values 2 and 5 is coming. string[] val = {2, 5}; I want to select 2 and 5 in the dropdownlist. Please help. Suman Singh
You can't use a DropDownList for multiple selections. This is a limitation of the resulting HTML, not ASP .NET. You have to use a ListBox instead if you want to select multiple items. -Matt
------------------------------------------ The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall