• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 746
  • Last Modified:

Autocomplete textbox

Hi Experts,
I am trying to build a autocomplete textbox in my web application.
I am using .Net Framework 3.5
User will type the name so the textbox will suggest the names from database.
(For this I found many examples)
No w what I need to is,when user selects any option in the autosuggest textbox,I need to fill
other textbox depending on the value selected.
Can this be done using the same web service/client callbacks.
0
Johny Bravo
Asked:
Johny Bravo
1 Solution
 
Mohit VijayCommented:
Why not you use javascript,

write it on your AutoComplete Textbox like

onchange="javascript:WriteToAnotherScript();"
0
 
princeatapiCommented:
well and good use javascript . take care of onBlur and onChange events for the autocomplete textbox
0
 
Johny BravoAuthor Commented:
Thanks,can you provide me any such example/Link
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
ong-hhCommented:
try using AJAX. http://www.asp.net/
There are ready code for building Autocomplete
0
 
Johny BravoAuthor Commented:
I am able to build autocomple.
Wat I need is,after select I need to fetch records accordingly.
0
 
Johny BravoAuthor Commented:
I think I am not able to tell what I need.
My autocomplete textbox is working properly.
when I teype a character,it shows relevanr names from database.
Now what I need to do is,when user selects any name in the textbox,that perso'n information(address,Phone number,Age)
should be shown in the other fields.
0
 
princeatapiCommented:
well use the typed in values as a search key and make a search on the database using ajax request and rebind the list ,
once the item has been selected ( as u need both user information too say address ) can be done with two ways Using Ajax or Page post back which ever you feel comfortable
0
 
puru1981Commented:
you can use textbox changed event to handle this. isn't this a option.
0
 
Johny BravoAuthor Commented:
Hi Experts,
This is what I was looking for,
http://www.codeproject.com/KB/ajax/autosuggestextender.aspx

Thanks to all for your time and suggestion to get me started.
0
 
Johny BravoAuthor Commented:
Thanks
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now