Solved

Autocomplete textbox

Posted on 2010-09-01
11
738 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
ID: 33574294
Why not you use javascript,

write it on your AutoComplete Textbox like

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

Expert Comment

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

Author Comment

by:johny_bravo1
ID: 33574396
Thanks,can you provide me any such example/Link
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 4

Expert Comment

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

Author Comment

by:johny_bravo1
ID: 33574670
I am able to build autocomple.
Wat I need is,after select I need to fetch records accordingly.
0
 
LVL 11

Expert Comment

by:princeatapi
ID: 33574724
0
 
LVL 8

Author Comment

by:johny_bravo1
ID: 33574798
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
ID: 33574820
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
ID: 33575422
you can use textbox changed event to handle this. isn't this a option.
0
 
LVL 8

Author Comment

by:johny_bravo1
ID: 33576215
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
ID: 33576224
Thanks
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

813 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

10 Experts available now in Live!

Get 1:1 Help Now