Click here to Skip to main content
15,912,205 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,,

I have use database with the columns Name,phoneno,id..And in a web page i use three textboxes for name,phoneno and id.If i give id in textbox1 , the corresponding name and phone no should display in textbox2 and textbox3.Kindly send me the answer.

Thanks ,

Viswanathan.M
Posted

Basic Question. following link will help you

Click me[^]
 
Share this answer
 
 
Share this answer
 
You can use ADO.Net to retrieve records from the database. For this scenario, you will need to use a SqlCommand and then add a parameter that contains the id of the record you are going to retrieve from the database. Read about ADO.Net. There are a lot of articles if you search in Google.
 
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