Author: krandall@randallnet.com | Posted on: 11/23/2009 11:28:44 AM | Views : 241

Hi,
I am creating a registration page with username, password, email address and favorite color. I test my form in development and  MembershipCreateStatus.DuplicateUserName fires. I have tried many unique, new names to test and still get the error. The unique information is getting stored as new users in my website admin tool. Why do I get .DuplicateUserName and not .Success? Here is my code behind.
Thanks,
krandall
Protected Sub BTNCreateUser_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles BTNCreateUser.Click Dim createStatus As MembershipCreateStatus Dim newUser As MembershipUser = Membership.CreateUser(TBUserName.Text, TBPassword.Text, TBUserEmail.Text, "What is your favorite color?", TBColor.Text, True, createStatus) Select Case createStatus Case MembershipCreateStatus.Success LabelCreateUserAccountResults.Text = " ...

Go to the complete details ...