srinivas rao

srinivas rao

  • NA
  • 49
  • 0

how to get the user name without domain name

Mar 5 2019 10:33 AM
Hi Team,
 
am using following way to get the user name but i am getting domain name also but i dont want to get the domain name.
 
System.Web.HttpContext.Current.User.Identity.Name 
 
Please let me know how to get the user name with out domain name.
 
Thanks in Advance 

Answers (3)