i am using the createuserwizard for a register page but have a small problem. I want the userid to be an email address so i renamed the label for the username to email but left the id field as userid. I then made the email field visible = false.
i want to call the CreatingUser method to set the email field to the username field before it processes but this doesnt seem to be happening as I look into the database and the user is created but the email for that user is blank.
ive tried to set it this way here plus tried using just CreateUserWizard1.Email =
right above this code i have a
protected void CreateUserWizard1_CreatedU
sender, EventArgs e)
call that works just fine
protected void CreateUserWizard1_CreatingUser(object sender, LoginCancelEventArgs e)
CreateUserWizard cuw = (CreateUserWizard)sender;
cuw.Email = cuw.UserName;