protected void CreateUserWizard1_CreatedUser(object sender, EventArgs e) { //User has already been successfully created // This is an addon, which adds the user to a given role. Roles.AddUserToRole(CreateUserWizard1.UserName, dlistRoles.SelectedValue); Schools.AddUserToSchool(CreateUserWizard1.UserName, Convert.ToInt64(dlistSchools.SelectedValue)); Grades.AddUserToGrade(CreateUserWizard1.UserName, Convert.ToInt16(dlistGrades.SelectedValue)); Users.AddAgeToUser(CreateUserWizard1.UserName, Convert.ToInt16(dlistAges.SelectedValue)); Users.AddGenderToUser(CreateUserWizard1.UserName, rblistGender.SelectedValue); //Users.AddGradeToUser(CreateUserWizard1.UserName, Convert.ToInt(dlistGrades.SelectedValue)); }