Click here to Skip to main content
12,690,575 members (33,862 online)
Rate this:
Please Sign up or sign in to vote.
See more: Ajax Autocomplete
I have a Textbox with an AutoCompleteExtender attached to it and it works fine. I have made the over layer that shows the autocomplete result with a fixed size and added an overflow:auto so it gives me a scrollbar when the list i too long for the over layer. When I try to use the scrollbar it fires the OnTextChanged on the textbox, because I changed focus away from the textbox and the text has been changed. So it actually does it job.

I use this to find member in database by writing there member ID and the autocompletes list shows the members with member id and name. The reason I need the OnTextChanged on the textbox is if the user decide to write the full member id and move on to the next textbox without using the autocomplete, it should still paint the information about this member just from the value in the textbox.

I have search a lot on the web I found different attempts on how to solve this, but none of them really works. The closest I got was using javascipt/Jquery to make the postback on .blur() and try not to make this postback if .mousedown () or .scoll(). But it didn’t work that well for me.

So hope some of you have a better approach or even a solution on how this could work.

Thanks in advanced.
Posted 17-Sep-12 21:05pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170117.1 | Last Updated 18 Sep 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100