Improve company productivity with a Business Account.Sign Up

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 748
  • 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.
Johny Bravo
Johny Bravo
1 Solution
Mohit VijayCommented:
Why not you use javascript,

write it on your AutoComplete Textbox like

well and good use javascript . take care of onBlur and onChange events for the autocomplete textbox
Johny BravoAuthor Commented:
Thanks,can you provide me any such example/Link
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

try using AJAX.
There are ready code for building Autocomplete
Johny BravoAuthor Commented:
I am able to build autocomple.
Wat I need is,after select I need to fetch records accordingly.
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.
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
you can use textbox changed event to handle this. isn't this a option.
Johny BravoAuthor Commented:
Hi Experts,
This is what I was looking for,

Thanks to all for your time and suggestion to get me started.
Johny BravoAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

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