how can i pass a database value to a textbox if i click a button.. should i use a query statement..? what kind? help pls ...
rockout15
0
Newbie Poster
Recommended Answers
Jump to PostSet up your connection to the database and a command object with your SQL statement in it. Execute the command on the database, storing the result in a string, and then set the text box.text to the extracted value. So, pseudo code (assuming mySql):
MySqlConnection conn = …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.