Hey Guys,
At last i found an unsolved article that uses the .Read function in reading data from database.
Below is my solution.
conn.Open()
cmd = New AseCommand("select * from employee where Id = " & txtUserName.Text, conn)
reader = cmd.ExecuteReader()
reader.Read()
If reader("Id") = txtUserName.Text Then
txtPwd.Text = reader("Name")
End If
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Offline 66 posts
since May 2007