I have two textboxes called txtemployee_code and txtname. and i have a sql procedure where if i enter employee_code and execute the procedure i can get the employee_code and name.
what i want to do is after enter employee_code in txtemployee_code field and press tab key then name will show in the txtname field
please someone help me to get the answer.....
please.....
thanks....

Satyapriya NayakRank #47 · 31.5K reputationPosted Sep 4, 2010, 3:35 AM EDT
Here is the C# version of the above code.
Thanks
ShankeyRank #972 · 2.1K reputationPosted Sep 3, 2010, 5:49 AM EDT
In this case you can call the event of the text box onblur()/OnLostFocus and onblur/OnLostFocus you can fetch the name of the employee and can fill in the text box.
Dont forget to mark my answer as accepted if it helped you :))
Felipe RamosRank #1,409 · 1.2K reputationPosted Sep 3, 2010, 5:50 AM EDT
Satyapriya NayakRank #47 · 31.5K reputationPosted Sep 3, 2010, 10:31 AM EDT
This is a simple application i did it of your requirement.Run the attachments.
Thanks
If it helps you plz mark it as Accepted answer