Solved

Autocomplete textbox

Posted on 2010-09-01
11
736 Views
Last Modified: 2012-05-10
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
Comment
Question by:johny_bravo1
11 Comments
 
LVL 8

Expert Comment

by:Mohit Vijay
Comment Utility
Why not you use javascript,

write it on your AutoComplete Textbox like

onchange="javascript:WriteToAnotherScript();"
0
 
LVL 11

Expert Comment

by:princeatapi
Comment Utility
well and good use javascript . take care of onBlur and onChange events for the autocomplete textbox
0
 
LVL 8

Author Comment

by:johny_bravo1
Comment Utility
Thanks,can you provide me any such example/Link
0
 
LVL 4

Expert Comment

by:ong-hh
Comment Utility
try using AJAX. http://www.asp.net/
There are ready code for building Autocomplete
0
 
LVL 8

Author Comment

by:johny_bravo1
Comment Utility
I am able to build autocomple.
Wat I need is,after select I need to fetch records accordingly.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 11

Expert Comment

by:princeatapi
Comment Utility
0
 
LVL 8

Author Comment

by:johny_bravo1
Comment Utility
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
 
LVL 11

Accepted Solution

by:
princeatapi earned 500 total points
Comment Utility
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
 
LVL 9

Expert Comment

by:puru1981
Comment Utility
you can use textbox changed event to handle this. isn't this a option.
0
 
LVL 8

Author Comment

by:johny_bravo1
Comment Utility
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
 
LVL 8

Author Closing Comment

by:johny_bravo1
Comment Utility
Thanks
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
New Relic recently released its Synthetics product that allows for the creation of performance monitors that periodically test a site's performance. If you wish to test an interactive workflow New Relic employs Selenium WebDriverJS to run those test…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now