Advertisement
hungvb

Login Button

Nov 20th, 2021
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.43 KB | None | 0 0
  1. Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
  2.         Dim intKiemTra As Integer = _kiemtra("select count(*) from tbl_user where tendangnhap= & txtTenDangNhap.Text &  and matkhau= & md5(txtMatKhau.Text) & ")
  3.         If intKiemTra = 1 Then
  4.             MessageBox.Show("Đăng nhập thành công!")
  5.         Else
  6.             MessageBox.Show("Đăng nhập không thành công!")
  7.         End If
  8. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement