[solved]represent a db column value in a textbox
I have these lines of code to retrieve a specific user from db, this user table contains USERNAME and PASSWORD. the sql selects both USERNAME and PASSWORD. I have a textbox called txtPW, when user click on "retrieve password" button, i want the password that corresponding to the input username appears in the textbox, Can any one help please?
I have these lines of code to retrieve a specific user from db, this user table contains USERNAME and PASSWORD. the sql selects both USERNAME and PASSWORD. I have a textbox called txtPW, when user click on "retrieve password" button, i want the password that corresponding to the input username appears in the textbox, Can any one help please?
VB.NET:
SqlDataAdapterPWReminder.SelectCommand.Parameters("@UNAME").Value = txtLoginName.Text
DataSetPWReminder.Clear()
SqlDataAdapterPWReminder.Fill(DataSetPWReminder)
Last edited: