custom field of CMS_User

Sonia Samimi asked on September 25, 2016 09:07

Hi Dear Guys, I have a custom field in CMS_User and I wanna use it in a user control. how do I use it via CMSContext.Currentuser in asp.net?

Thank you in advance

Correct Answer

Roman Hutnyk answered on September 25, 2016 10:24

Dear Sonia,

You may use set/set value methods like this:

CMSContext.Currentuser.GetValue("MyCustomFieldName");
CMSContext.Currentuser.SetValue("MyCustomFieldName", value);

There are also methods, those cast a value to specific type, like GetIntValue, etc.

1 votesVote for this answer Unmark Correct answer

Recent Answers


Sonia Samimi answered on September 25, 2016 10:57

Thank You. a huge LIKE :D

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.