HEY THERE! COULD ANYONE HELP ME WITH THIS?
THIS CODE DOESN'T HAVE AN ERROR BUT MY PROBLEM IS NOTHING DISPLAYS ON MY TEXTBOX.
I WANT TO GET THE VALUE FROM MY MYSQL DATABASE TO TEXTBOX. Is there another way to do?
dbcon = getconnect()
dbcon.Open()
cmd = New MySqlCommand("select * from performancetbl where perfevalid='" & frmClientAuthenticationCode.txtperfevalID.Text & "'", dbcon)
dr1 = cmd.ExecuteReader
If dr1.HasRows Then
dr1.Read()
frmClientAuthenticationCode.txtperfevalID.Text = dr1.Item("perfevalID")
frmClientAuthenticationCode.txtsize.Text = dr1.Item("SIZE")
End If
dr1.Close()
dbcon.Close()
dbcon.Dispose()
cmd = New MySqlCommand("select * from performancetbl where perfevalid='" & frmClientAuthenticationCode.txtperfevalID.Text & "'", dbcon)
dr1 = cmd.ExecuteReader
If dr1.HasRows Then
dr1.Read()
frmClientAuthenticationCode.txtperfevalID.Text = dr1.Item("perfevalID")
frmClientAuthenticationCode.txtsize.Text = dr1.Item("SIZE")
End If
dr1.Close()
dbcon.Close()
dbcon.Dispose()