We help IT Professionals succeed at work.

Return Key/Value instead of just one single value using autocomplete ajaxtoolkit

gauravjoshi
gauravjoshi asked
on
Is it correct that there is no way to use the AutoComplete to get an ID value?

In otherwords, when they are done with the control, I  want the text in the textbox, and also I want the database ID value behind it,

Basically i want dropdown functionality in autocomplete textbox, where i can have two things text and value.
Comment
Watch Question

in Ajax Tool Kit source  files change the appropriate functions which manages AutoComplete functionality.In AutoCompleteBehavior.js and AutoCompleteExtender.cs files you must do some modifications. but you must be familiar with javascript.

Author

Commented:
is there any other solution than changing javascript?

Thanks for comment
Try to find another free autocomplete combobox. You can easily find and implement it. do some googling. For example search codeproject.com

Author

Commented:
Thanks for idea on search term

i found some links on the net, I m not sure whether it will solve my problem or not, but looks promising

this is the post, might get use full to some one, looking for the same solution
http://forums.asp.net/t/1131690.aspx

Gaurav

Explore More ContentExplore courses, solutions, and other research materials related to this topic.