Click here to Skip to main content
14,923,034 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
Posted

See
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.

VB
<ajaxToolkit:ComboBox ID="ComboBox1" runat="server"
     AutoPostBack="False"
     DropDownStyle="DropDownList"
     AutoCompleteMode="SuggestAppend"
     CaseSensitive="False"
     CssClass=""
     ItemInsertLocation="Append" ... >

Get more details here
   
Comments
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>

</select>
i think its not available to take textbox in dropdownliist as of my knowledge
thanku
   
@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
   

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