Solved

Autocomplete textbox

Posted on 2010-09-01
11
742 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
Automating Your MSP Business

The road to profitability.
Delivering superior services is key to ensuring customer satisfaction and the consequent long-term relationships that enable MSPs to lock in predictable, recurring revenue. What's the best way to deliver superior service? One word: automation.

 
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

Suggested Solutions

Title # Comments Views Activity
checkbox group not updating when none of them is selected 11 43
Telerik RadEditor Control Save 8 39
asp.net, radiobuttonlist, c# 3 67
AJAX Create / Update Not working MVC 5 62
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
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…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

739 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