0

In SharePoint 2013, using SSOM, we need to display the email-id and profile picture of loggedin user on a webpart?

What is best practice? Do I need to use SPContext.Current.User or Do I use the userprofile properties?

1

I would suggest you to use SPContext.Current.Site.RootWeb.CurrentUser.Email for Email. For profile picture on you will have to get it from userprofile properties. (You can refer this Users image in my site programatically)

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.