ajaxToolKit autoCompleteExtender OnClientItemSelected

theNoobProgrammer picture theNoobProgrammer · Aug 7, 2012 · Viewed 7.1k times · Source

I am trying to implement an autoCompleteExtender into my project. Currently I am using the OnClientItemSelected property to call a javascript on the client side. Is there a way (using another property or some other code) that will let me call a method in the code behind when the user selects an option?

Answer

Yuriy Rozhovetskiy picture Yuriy Rozhovetskiy · Aug 14, 2012
function AutoCompleteEx_OnClientItemSelected(sender, args) {
     __doPostBack(sender.get_element().name, '');
}

On server side handle TextChanged event of extended textbox.