I want to stop the creation of a user ID in the user database if the created ID does not match a list of pre-authorized users. I have a function that compares the username of the createuserwizard control to a database of authorized users.
Protected Sub CreateUserWizard1_CreatingUser(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.LoginCancelEventArgs)
Dim chkID As Boolean
chkID = CompareUserName()
If chkID = False Then Exit Sub
I put it in creatinguser event but exiting the sub if the users do not match, does not prevent the user information from being written to the user database. How can I interrupt this process? I am using vs2005 and visual basic.