Click here to Skip to main content
15,892,643 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my web page i am using ajaxToolkit:AutoCompleteExtender to fill the text box.

Is there any way to fill the other textboxes automatically by taking the AutoCompleteExtender textbox value as a paramter using AJAX?

For example, if i fill the EMPLOYEE NAME in the text box , the correpsonding information has to fill in the other textboxes, like address,phone number etc.

Thanks in advance.

Nag
Posted
Comments
Sandeep Mewara 7-Jun-10 16:23pm    
Glad it helped!

dotnet.nag wrote:
Is there any way to fill the other textboxes automatically by taking the AutoCompleteExtender textbox value as a paramter using AJAX?


Yes!

Put a Javascript function on textbox onchange event(or onblurr, etc - event that suits you!). In the event, create an XMLHttprequest, pass the textbox value as paramter and get back the needed values and set it.
 
Share this answer
 
Comments
ureachnag 7-Jun-10 15:54pm    
Thank you very much for your swift response Sandeep.
jst an improvement to the above answer..
keep all the controls in an update panel so that you cannot experience a postback too...

Happy Coding :cool:
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900