ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,776 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am trying to get the E-Mail/First Name and Last Name on the Controller side of ASP.Net Web
User Name i am getting via
string UserName = HttpContext.User.Identity.Name;
But i am getting NULL in
MailId = UserPrincipal.Current.EmailAddress;
FirstName = UserPrincipal.Current.GivenName;
LastName = UserPrincipal.Current.Surname;
Unfortunately our LDAP server is not providing the Mail Address