you just check each of the value in registration form with data in your database, what the problems...
if u can save and show data from database so its not difficult to validate registration from with database.
Jx_Man
Nearly a Senior Poster
3,329 posts since Nov 2007
Reputation Points: 1,372
Solved Threads: 444
if you can do in asp.net with vb, it think you can do the same. so what the effort of your code?
Estella
Junior Poster in Training
99 posts since Jan 2008
Reputation Points: 64
Solved Threads: 7
'declare connectionstring to server
'assuming your table name where users are stored is called 'Users'
'and the column name to verify a user is called 'username'
Dim SelectStmt As String = "SELECT * FROM users WHERE UserName ='" + userNameTextBox.Text + "' and " + _
"Password ='" + passwordTextBox.Text + "'"
Dim dc As SqlCommand = New SqlCommand(SelectStmt, con) 'assming your connectionstring is called 'con'
Dim reader As SqlDataReader = objcommand.ExecuteReader
If reader.Read Then
'enter codes on what the system should do if the user exists
Else
MessageBox.Show("Invalid Username or Password!", "Login Error", _
MessageBoxButtons.RetryCancel, MessageBoxIcon.Warning)
End if
Netcode
Veteran Poster
1,021 posts since Jun 2009
Reputation Points: 43
Solved Threads: 67