Autofill feature with Listbox in asp.net
<p>i have a Listbox with items being 'first name' loaded from a table of a database, </p>

<ol>
<li>now i want an autofill feature where if a user types like 'a' all the names starting with 'a' first name should be show in the listbox</li>
<li>and after some button click the original data should be repopulated in the listbox</li>
</ol>

<p>for 2nd one i.e.. repopulating hope i can do with below code</p>

<p><code>protected void btnRePopulate_Click(object sender, EventArgs e)
    {
        DataSet oDs = ReadDataSet();
        Listbox1.DataTextField = "Name";
        Listbox1.DataValueField = "ID";
        Listbox1.DataSource = oDs;
        Listbox1.DataBind();
    }</code></p>

<p>but for the 1st i have some things on which iam working (i am using textbox keyup event to fire when the user types 'a' or whatever)</p>

<ol>
<li>clear the listbox and add the names which starts with 'a', but not sure is it possible from client side</li>
<li>or set another listbox visible with names filtered from the original and hide the original listbox, for which i am not able to set visible property either from js or codebehind</li>
<li>no i dont want to use ajax autofill</li>
</ol>

<p>is there a better option apart from the above two...</p>
