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.