.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

Fetch data from database in the textbox after hit the tabkey in the gridview........

Posted By: avijit     Posted Date: August 29, 2010    Points:2   Category :C#
I want fetch data in the textbox. i have created a sql procedure where...... if i will enter employee code and fetch the name...
In .net textbox1, I will enter empcode and press tabkey,name fetched and show in the textbox2.
please send me any example to do that as.aspxpage and also codebehind page in c#.net.....

please someone help to solve my problem....please...


Author: Nikhil Kumar             
Posted Date: August 29, 2010     Points: 5   

for this you have to use events or you can use predefined key event.

Be helpful and enjoy life because it comes only onces. Give all the happiness to yours and remember it doesn't comes by money ...
Author: Akhil Raj       [Moderator]      
Posted Date: September 05, 2010     Points: 5   

hi you can use textbox's onFocus event for this..
Write name fetching ode in the second textbox focus event with textbox1's text (employee code) as parameter

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend