Hi guys , i want to fill a textbox with a data from my mysql database and i dont know how to do it , i already searched without a result , if someone can help me i would appreciate it .
xVent 0 Junior Poster in Training
Recommended Answers
Jump to PostxVent,
... Open DB connection ... Execute Query and assign result into var variable. txtData.Text=var; ... ...
Jump to PostPost your code work.
Jump to PostxVent,
I think the following code will help you. I presume that you have a table emp(eno int, ename varchar(30)):Dim con As New MySqlConnection() Dim cmd As New MySqlCommand Dim adptr As New MySqlDataAdapter Dim table As New DataTable .... con.ConnectionString="set_your_connectionString" adpter=new MySqlDataAdapter("select * from emp",con) …
All 9 Replies
xVent 0 Junior Poster in Training
kvprajapati 1,826 Posting Genius Team Colleague
xVent 0 Junior Poster in Training
xVent 0 Junior Poster in Training
kvprajapati 1,826 Posting Genius Team Colleague
xVent 0 Junior Poster in Training
Piya27 4 Junior Poster
kvprajapati 1,826 Posting Genius Team Colleague
xVent 0 Junior Poster in Training
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.