<p>Ok, so I want an autocomplete dropdown with linkbuttons as selections. So, the user puts the cursor in the "text box" and is greated with a list of options. They can either start typing to narrow down the list, or select one of the options on the list. As soon as they click (or press enter) the dataset this is linked to will be filtered by the selection. </p>

<p>Ok, is this as easy as wrapping an AJAX autocomplete around a dropdown? No? (Please?) </p>

[{'answer_id': 40504, 'author': 'JasonS', 'author_id': 1865, 'author_profile': 'https://Stackoverflow.com/users/1865', 'pm_score': 0, 'selected': False, 'text': "<p>You'll have to handle the OnSelectedIndexChanged event of your drop down list to rebind your dataset based on the users selection.  If you want the filtering to happen in an asynch postback, wrap the dataset (or datagrid I'm assuming) and your drop down in an UpdatePanel.  That is one way to do it anyhow.</p>\n"}, {'answer_id': 339033, 'author': 'thoughtcrimes', 'author_id': 37814, 'author_profile': 'https://Stackoverflow.com/users/37814', 'pm_score': 1, 'selected': True, 'text': "<p>This widget can be made with three items: a text input, button input, and an unordered list to hold the results.</p>\n\n<pre><code> __________  _\n|__________||v|__             &lt;-- text and button\n  |              |            &lt;-- ul (styled to appear relative to text input)\n  |              |\n  |              |\n  |______________|\n</code></pre>\n\n<p>ul shown on:</p>\n\n<ul>\n<li>'keyUp' event of the text input (if value is non-empty) </li>\n<li>'click' event of the button input (if currently not visible)</li>\n</ul>\n\n<p>ul hidden on:</p>\n\n<ul>\n<li>'click' event of the button input (if currently visible)</li>\n<li>'click' event of list items</li>\n</ul>\n\n<p>When the ul is shown or the 'keyUp' event of the text input is triggered an AJAX call to the server needs to be made to update the list. </p>\n\n<p>On success the results should be placed in the ul. When creating the list items they should have a 'click' event attached to them that sets the text input value and hides the ul (may have to add a link inside the li to attach the event to).</p>\n\n<p>The hardest part is really the CSS. The JavaScript is simple especially with a solid library like prototype that supports multiple browsers. </p>\n\n<p>You will probably want to support some IDs for the items, so you can add some hidden inputs to each list item with the id and next to the text input to store the selected items ID.</p>\n"}, {'answer_id': 339826, 'author': 'Alterlife', 'author_id': 36848, 'author_profile': 'https://Stackoverflow.com/users/36848', 'pm_score': -1, 'selected': False, 'text': '<p>In my opinion, you shouldn\'t use AJAX for this at all. </p>\n\n<p>here\'s why:</p>\n\n<p>(1) On focus: ALL the options that he can select are shown in the dropdown. This means that all possible options are already sent to the client.</p>\n\n<p>(2) If the user types something in, the number of entries in the drop down are filtered down to match. This can easily be done on the client side. Being ajax\'y and going back to the server at this point will just slow things down.</p>\n\n<p>phpguru.org has a control which is \'almost exactly\' what you need:</p>\n\n<p><a href="http://www.phpguru.org/static/AutoComplete.html#demo" rel="nofollow noreferrer">http://www.phpguru.org/static/AutoComplete.html#demo</a></p>\n\n<p>It differs slightly from what you need in that it shows the dropdown on double-click instead of on focus. That should be fairly easy to modify.</p>\n\n<p>I hope this helps.</p>\n'}, {'answer_id': 339855, 'author': 'Thomas Hansen', 'author_id': 29746, 'author_profile': 'https://Stackoverflow.com/users/29746', 'pm_score': 0, 'selected': False, 'text': '<p>I am not entirely sure what you want, but the Ra-Ajax <a href="http://ra-ajax.org/samples/Ajax-AutoCompleter.aspx" rel="nofollow noreferrer">AutoCompleter</a> definitely have support for having "controls" within itself. You can see that in the search box at <a href="http://stacked.ra-ajax.org/" rel="nofollow noreferrer">Stacked</a> in fact (upper right corner) where we\'re using links. But this could also be LinkButtons if you wish...</p>\n\n<p>Disclaimer; I work with Ra-Ajax...</p>\n'}]
['https://Stackoverflow.com/questions/40422', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4140/']