locked
why profilecommon class is used to use persanalization in member ship RRS feed

  • Question

  • User2102072086 posted

    hi,

    q1)   in personalization we get the value of properties by profile.lastnamebut when we use personalization in membership use

    i have to use profiecommon ( why is it so)?

    ProfileCommon pc = new ProfileCommon(); pc.Initialize(CreateUserWizard1.UserName.ToString(), true); pc.FirstName = Firstname.Text; pc.LastName = Lastname.Text; pc.Age = Age.Text; pc.Save();

    yours sincerely

    Sunday, July 12, 2015 7:35 AM

Answers

  • User-1664007096 posted

    why profilecommon class is used to use persanalization in member ship

    Thanks for your post.

    To use the profile in the Web site, you access it in much the same way you might access session state.However, instead of being represented by name/value pairs accessed through an indexer,the ASP.NET compiler will synthesize a profile object based upon the scheme defined in the Web.Config file.

    For example, given the schema listed above, ASP.NET will synthesize a class named ProfileCommon, based upon the ProfileBase class.The synthesized class will reflect the instructions written into the Web.Config by inserting properties.

    For more information, click here to refer about Using Personalization

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, July 13, 2015 11:26 PM