Hello
I have a two-field form (email and password). If I want to check that both fields have been completed by the user, is this likely to work?
strEmail is the ID of the email field and password is the ID of the password field. I don't get any debug errors in Visual Studio 2013 for Web.
Thank you.
I have a two-field form (email and password). If I want to check that both fields have been completed by the user, is this likely to work?
strEmail is the ID of the email field and password is the ID of the password field. I don't get any debug errors in Visual Studio 2013 for Web.
Code:
Sub Main()
Dim strEmail As String = Nothing
Dim password As String = Nothing
If String.IsNullOrEmpty(strEmail) Then
MsgBox("Please type in a valid email")
End If
If String.IsNullOrEmpty(password) Then
MsgBox("Please type in a password")
End If
End Sub
Comment