Skip to content

Instantly share code, notes, and snippets.

@ryankinal
Created March 21, 2013 14:48
Show Gist options
  • Save ryankinal/5213614 to your computer and use it in GitHub Desktop.
Save ryankinal/5213614 to your computer and use it in GitHub Desktop.
Dammit, Brandon
Sub UserNameValidation(ByVal source As Object, ByVal args As ServerValidateEventArgs)
Try
Dim intUserID As Integer = common.getStudentIDFromUserName(Me.userNameTextBox.Text)
If intUserID <> 0 Then
args.IsValid = False
Else
args.IsValid = True
End If
Catch ex As Exception
'Brandon says leave this blank ... for now.
End Try
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment