adljaasdk
adljaasdk

Reputation: 1

Editing an asp.net DropdownList

I have a dropdown list of 5 elements. My problem is that I want to make this dropdown list editable. Basically a user might want to delete one of these elements or might want to add more elements. Whats a good approach of doing that in asp.net ?

Upvotes: 0

Views: 129

Answers (4)

RaShe
RaShe

Reputation: 1880

If you use DataBase, u can make dropdownlist MORE editable with elements like "formView", "gridView" and so on..

Upvotes: 0

Sarawut Positwinyu
Sarawut Positwinyu

Reputation: 5042

You have to put textbox for typing text and button for user to insert into the list and button for delete Do you know the code to adding and deleting list in the dropdown list right ?

Upvotes: 1

IrishChieftain
IrishChieftain

Reputation: 15253

Use a ListBox - that way they can make a multi-selection of their choice:

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.listbox.aspx

The DropDownList is not intended for multi-selection. Another option would be to use CheckBoxes.

Upvotes: 0

Louis Waweru
Louis Waweru

Reputation: 3672

Use a ComboBox.

Upvotes: 1

Related Questions