Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

How to get current User's Manager Name and Manager Email in a visual webpart

$
0
0

Hi,

I am new to programming, I have a requirement to get current userInfo and Manager's info on to a visual webpart.

I am using

  protected void Page_Load(object sender, EventArgs e)
        {
            SPUser user = SPContext.Current.Web.CurrentUser;
            txt1.Text = user.Name;
            txt2.Text = user.LoginName;
            txt3.Text = user.Email;
         }

to get current user info and it works, can anyone help me or send a link to get current User's Manager's Info, any help will be appreciated.


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>