Solved

Autocomplete textbox

Posted on 2010-09-01
11
743 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as the high-speed power of the cloud.

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

691 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