Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have employee_id 1000,1001,1002,1003,1004... likewise. And my other fields are employee_name,employee_age,employee_mobile likewise.,.

what i need now is i get a employee_id in combo box. if i select the employee_id in combo box in the below text boxes i want to display the other fields like employee_name,employee_age,employee_mobile..

how should i do ?
Posted

You, of course, query the database and select the records matching the selected employee id. What part are you having difficulty with? There innumerable resources available that cover ADO.NET.
 
Share this answer
 
v2
You can access the selected item from DDL using "SelectedIdexChanged".
 
Share this answer
 
you can do it easily

1. search data using " employee_id " from DataBase . you can use SelectedValue property of your ComboBox / DropDownList
2. If data found then show data in the Textbox
 
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