Trouble wilth Extended User Data

rated by 0 users
This post has 1 Reply | 2 Followers

GyanRanjan
Not Ranked
Posts 1
Points 20
By: GyanRanjan
Posted: Mon, Jul 21 2008 1:20 PM

Hi all,

 

i am new for development using community server. Right now i am facing with saving extended user data. i created my own custom skin file

although i am able to retrieve data but not able to save it .

i tried all the methods to save data but in vain.

User.Update(_user).

i am deperately looking for solution how to save extended user data.

 

and a demo will be quite appreciable.

 

Thanks in advance

Ranjan[^o)]

 
Alex Crome
Top 10 Contributor
Posts 2,782
Points 41,115
TelligentSupportTeam
By: Alex Crome
Posted: Mon, Jul 21 2008 2:17 PM In reply to

//Save the values
User user = CSContext.Current.User; // this gets the current logged on user
User.SetExtendedAttribute("newattribute", "value");
Users.Update(user);

//Get the attribute value
User user = CSContext.Current.User
string value = user.GetString("newattribute");

 
  • Post Points: 5 |
Page 1 of 1 (2 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com