Click here to Skip to main content
15,885,084 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi <tag>
This one is driving me crazy could you please explain how to assign database value to a text box.
<tag>

Regards
Lancy
Posted

Can you please elaborate this question

Are you talking of fetching value from database and showing it on UI ?
 
Share this answer
 
Comments
Lancy.net 5-Nov-11 0:51am    
yes deepak you are correct
Lancy.net 5-Nov-11 0:52am    
Database value to UI
deepakdynamite 5-Nov-11 3:50am    
Please refer to this link:

http://www.codeproject.com/KB/database/sql_in_csharp.aspx
Lancy.net 5-Nov-11 7:44am    
Thanks Deepak let me try
Check this articles in code project. May be this will help you

ADO.NET 101: SQL Connection[^]

An ASP.NET Application Using a MySQL Database[^]


Select your data from database using Select query
and assign its value to a text box using
Text property of textboxes
 
Share this answer
 
Comments
Lancy.net 5-Nov-11 7:43am    
Thanks Arun

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