Autocompleteextender issue

F

Frank

Hi everyone,

Currently I am using an autocomplete extender for a textbox. This
works fine, the data is fetched from a database and the hits are shown
as customer names when typing in the textbox. However, the problem is
that I would like to show in which field the corresponding search text
was found, address or contact person, etc.

The problem is that I cannot add this directly in the array that is
built in the webmethod because when you click on a possible hit this
would be filled into the textbox but then it wouldnt be able to find
the data.

What I want is to access a label on the page from the webmethod or
some other way that is filled with the corresponding field from which
the query was able to find its results.

Example:
Search: Micro => autocompleteextender shows: Microsoft => label says:
Found, company name: Microsoft
Search: John D => autocompleteextender shows: John Doe => label says:
Found, contact person: John Doe

How to do this from the webmethod? Its set in codebehind but the code
is of course isolated from the other functions and the page.

Hope someone can help or has an idea how to add this feature.
Regards,
Frank
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top