Try Now
More in this section

Forums / Developing with Sitefinity / User profile custom fields

User profile custom fields

2 posts, 0 answered
  1. Sajid
    Sajid avatar
    7 posts
    04 Aug 2010
    06 Oct 2010
    Link to this post

    I have added some custom fields for create user wizard. I have updated web.config and admin section to have those fields.
    Fields like:
    Company, Department, Contract Number, User Expiry Date etc.

    Now, can I update these fields progrmatically through my own user control? how?

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    25 Oct 2016
    07 Oct 2010
    Link to this post
    Hello Sajid,

    You can update these fields by using standard ASP.NET classes - ProfileBase, ProfileCommon.
    Another option is using ManageProfile class and its SetProfileProperties, but if you wrap your custom fields inside the control, property values should be persisted automatically and you do not have to write any code.

    var mp = new ManageProfile();

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered