Hi I know it is something simple but I cant get the if else to work as expected
this is the code i am using
I would like it to test two things is the password is empty display a msg or if it is less than 8 chars display a msg
thanks
MJ
this is the code i am using
Code:
If PasswordTextBox.Text = "" Then RadLabelError.Text = "Please Enter Your Password!"
If PasswordTextBox.Text.Length < "8" Then
RadLabelError.ForeColor = Color.Red
RadLabelError.Text = "Password must be 8 Charecters!"
RadDesktopAlert1.CaptionText = "Error"
RadDesktopAlert1.ContentText = "Please Enter Your Password!"
RadDesktopAlert1.Show()
PasswordTextBox.Focus()
PasswordTextBox.Clear()
PasswordTextBoxValid = False
Else
PasswordTextBoxValid = True
RadLabelError.Text = ""
End If
thanks
MJ
Comment