I’ve been trying to add auto complete functionality to a text box. I want to make an Ajax call to a database with the text box content as well as the selected search field(chosen from a separate drop-down) as parameters. I was able to get it working with the AjaxToolkit AutoCompleteExtender, but that doesn’t allow me to pass any parameters other than the content of the text box. I have all the ajax working to the point where I get a string array of all the autocomplete suggestions.
My question is, what HTML element should I use for the actual extender part? I know the prefab AutoCompleteExtender uses a <‘ul’> element that it fills with <‘li’> items, but that seems like it would be cumbersome to do with js/jquery. Is there a control that would allow me to bind my string array to it? What does Google use for theirs?
You can also pass a
ContextKeyto the ajax callback.