Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

AJAX AutoCompleteExtender

$
0
0

Hi everyone,

I am using AJAX AutoCompleteExtender on a TextBox and have a problem in regard to passing the Completion List value(from the Auto complete list generated by the AutoCompleteExtender) to the TextBox.

Let me explain how my Web Form is organized.

I have got a text box that searches people in an organisation. Auto complete provides suggestions as the user starts typing the text. As people can have the same name, the list displayed includes their department as well to help the user find the exact person.

Now, when the user selects an item, I want the value that is passed to the text box to beonly the name of the person because clicking on search button queries the database where name='text in the textbox'. If department is also passed, the search query fails.

Or another thing that I could do with is : when the user selects an item, can i fire a query and skip the press of the search button all together?

Please point me to any related link or source.
Thanks.


Viewing all articles
Browse latest Browse all 5678

Trending Articles