How to get User Custom field value?

Vasyl Chepil asked on April 4, 2016 14:25

I've added new field "IsExpertIn" to "Modules - Membership - User(System table)"

How can i acces this field value from web part layout? I tried <%# SelectedUser.UserSettings.GetStringValue("IsExpertIn", "IsExpertIn_no_value") %> but it always returns IsExpertIn_no_value

Correct Answer

Felix Planjer answered on April 4, 2016 14:34

Leave out the 'UserSettings' part. Use: SelectedUser.GetStringValue("IsExpertIn", "IsExpertIn_no_value")

1 votesVote for this answer Unmark Correct answer

Recent Answers

Vasyl Chepil answered on April 4, 2016 14:36

it works, thanks

0 votesVote for this answer Mark as a Correct answer

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