Dropdown List with ability to enter new values

pize
pize used Ask the Experts™
on
Im wondering if it is possible to have a .NET asp web Dropdown control allow the user to select a value from the list or type in a completely new value.  I do not mean autocomplete type functionality, I mean actually allow them to type in a brand new value.  Kind of like having a free text box or being able to select from the list.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Multitechnician
Top Expert 2014
Commented:

Commented:
here is an example
Allowing users to select multiple items/add items
    <asp:TextBox ID="TextBox2" runat="server" />
    <asp:Button ID="Button" runat="server" Text="Add an additional item" OnClick="Button_Click" /><br /><br />
    <asp:DropDownList ID="DropDownList1" runat="server">        <asp:ListItem>Hematite</asp:ListItem>
        <asp:ListItem>Halite</asp:ListItem>
        <asp:ListItem>Limonite</asp:ListItem>
        <asp:ListItem>Magnetite</asp:ListItem>
    </asp:DropDownList>
Protected Sub Button_Click(ByVal sender As Object, ByVal e As System.EventArgs)
        DropDownList1.Items.Add(TextBox2.Text.ToString())
    End Sub

Open in new window

Commented:
was that what you were looking for?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial