Unable to modify user with code

Posted by Community Admin on 04-Aug-2018 11:03

Unable to modify user with code

All Replies

Posted by Community Admin on 07-Feb-2011 00:00

protected void btnSaveUser_Click(object sender, EventArgs e)
   
       try
       
           Telerik.Sitefinity.Security.UserManager um = new Telerik.Sitefinity.Security.UserManager();
           Telerik.Sitefinity.Security.Model.User user = um.GetUser(DropDownList2.SelectedItem.Text);
           user.FirstName = RadTextBox2.Text;
           user.LastName = RadTextBox3.Text;
           um.SaveChanges();
       
       catch (Exception ex)
       
       
   
Hi there
I am unable to modify the user name by above code . as i have created user with the Create user wizard of ASP.net control . But it take only User Name , Password and email while creating the user . I want to assign the First Name,Last Name with Above code but it is not working . Can you please suggest me How to Change the user information with code
Thanks
Gaurav

Posted by Community Admin on 07-Feb-2011 00:00

Its working there was fault in my Code on page Load

This thread is closed