1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / How can we update the usermetainfo table

How can we update the usermetainfo table

2 posts, 0 answered
  1. anand
    anand avatar
    59 posts
    Registered:
    11 Jun 2008
    26 Dec 2008
    Link to this post
    We are able to create a user by using user control 'ImportUsersControl.ascx' from a csv file.
    but it not update the usermetainfo table. how it update the usermetainfo table ?

    please guide me
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    26 Dec 2008
    Link to this post
    Hi anand,

    Thank you for contacting us.

    We suggest using Sitefinity's APIs to create new users. Below is an example:

    MembershipUser user = Membership.CreateUser(txtName.Text, txtPassword.Text, txtEmail.Text, "Question?""answer"trueout status);  
    ProfileBase profile = ProfileBase.Create(user.UserName);  
    profile.SetPropertyValue("FirstName", firstname); 
    profile.Save();   
            ......  

    You should use the methods provided by CommonProfile, ProfileBase, ProfileManager or ProfileProvider classes.

    I hope this helps.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
2 posts, 0 answered