Click here to Skip to main content
15,937,602 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
can we take text box in drop down list ?
dropdown list's first element will be a textbox and other elements are the values
i want this because i have to apply AutoComplete to that textbox

ComboBox is an ASP.NET AJAX control that, like the AutoCompleteExtender, combines the flexibility of a TextBox with a list of options that users are able to choose from. It borrows many of its properties, behaviors, and naming conventions from the Windows Forms ComboBox control, and is derived from the same base class as the ListBox, BulletedList, and DropDownList web controls. In fact, a ComboBox is best described as a DropDownList that can be typed directly into like a TextBox.

<ajaxToolkit:ComboBox ID="ComboBox1" runat="server"
     ItemInsertLocation="Append" ... >

Get more details here
Share this answer
Prasad gavande 7-Nov-13 5:43am    
thanks but i want something like this
<select name="color">
<option><input type="text" name="color" /></option>
<option>pick a color</option>
<option value="red">RED</option>
<option value="blue">BLUE</option>

i think its not available to take textbox in dropdownliist as of my knowledge
Share this answer
@satyaanupama thank you but it is done in metro style Css
please go here

form element and general
there is drop down list with text box i want to do the same
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900