Author: wms103006 | Posted on: 2/4/2009 9:15:33 PM | Views : 259

My user profile is getting saved but under anonymous. During the CreateUserWizard process I'm setting up a few of the user profile properties. I'm using the Web Profile Builder since i have a web app project.

protected void CreateUserWizard1_CreatedUser(object sender, EventArgs e)
        {
            TextBox UserNameTextBox = (TextBox)CreateUserWizardStep1.ContentTemplateContainer.FindControl("UserName");
            SqlDataSource DataSource = (SqlDataSource)CreateUserWizardStep1.ContentTemplateContainer.FindControl("SqlDataSource1");
            MembershipUser User = Membership.GetUser(UserNameTextBox.Text);
            object UserGUID = User.ProviderUserKey;
  ...

Go to the complete details ...