I have the following code:
Dim userName As String
Dim passWord As String
'
' Populate userName and passWord from an online text file ...
'
If textbox1.text = userName AndAlso Textbox2.text = passWord Then
MsgBox("Welcome")
Else
MsgBox("UserName or Password incorrect")
End If
How do I verify the user and password against an online text file from a URL that contains data like:
User;Password
You can use WebClient class methods –
DownloadFileorDownloadStringorDownloadDatato read the URL.EDIT: Use String.Split() method to separate username and password.