Click here to Skip to main content
15,906,463 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi every one,iam doing a project in c# .net,in c#windows app,i am using 4 text box controls,and one button control,when i type some name in 1st textbox the required column information should be display in other3 columns ,like when i type the student name in textbox1 control when i click submit button ,feepaid and feebalance information should come in other textbox'x,iam using sqldata base,pls help me
Posted

when i type some name in 1st textbox the required column information should be display in other3 columns ....when i click submit button
All you need is to write a simple code in button click where you get the text entered in the first textbox. Based on the text, form the query ang get the data from database. Fetched data then displayed in the controls as needed.

For getting data from database, use ADO.NET. Read about ADO.NET here and it will help you.
Look at these:
MSDN: ADO.NET[^]
MSDN: Accessing Data with ADO.NET[^]
The C# Station ADO.NET Tutorial[^]
Using ADO.NET for beginners[^]

Try!
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 22-Apr-11 22:32pm    
A wealth of useful references again, a 5.
--SA
Sandeep Mewara 22-Apr-11 23:36pm    
Thanks SA.
Hi,

Please go through with this article
Beginners guide to accessing SQL Server through C#

regards
Ankit
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 22-Apr-11 22:33pm    
Very adequate source which should give a right idea, my 5.
--SA
Ankit Rajput 25-Apr-11 2:59am    
thanks SA

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