Anyone see why this code doesn't write to the database from profile? All the p. values are assigned correctly.
protected void cuwReg_CreatedUser(object sender, EventArgs e)
{
cuw = Util.FindChild(Page, "cuwReg") as CreateUserWizard;
//empty Profile for newly created user
ProfileCommon p = ProfileCommon.Create(cuw.UserName, true) as ProfileCommon;
p.Initialize(cuw.UserName.ToString(), true);
txt = Util.FindChild(Page, "UserName") as TextBox;
p.UserName = txt.Text;
//populate Profile from controls
p.Phone = Util.FormatPhone((Util.FindChild(cuw, "txtPhone") as TextBox).Text.Trim());
p.Email = (Util.FindChild(cuw, "Email") as TextBox).Text.Trim();
p.FirstName = new System.Globalization.CultureInfo("en").TextInfo.ToTitleCase((Util.FindChild(cuw, "txtFirst") as TextBox).Text.Trim().ToLower());
//p.Gender = (Util.FindChild(cuw, "rblGender") as RadioBut ...
Go to the complete details ...