
How to populate a drop down when user enters some text in text box, i have tried using text changed event in the text box control it works, but needs to click twice the drop down, when i clicked first it loads the data and drop drown gets closed, then i again click it shows
i used asp text box and asp drop down
<asp:TextBox ID="TextBox1" runat="server" AutoPostBack="true">
</asp:TextBox>
Private Sub TextBox1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
DropDownList1.Items.Clear()
DropDownList1.Items.Add(TextBox1.Text)
Dim icount As Integer
icount = DropDownList1.Items.Count
DropDownList1.Items.Add("Select")
DropDownList1.SelectedIndex = icount
End Sub

selectoption to the on thetext changeddropdown?OnTextChanged="DropDownList1"in your textbox property