I am trying to build an application on our company\'s intranet using ASP.NET and VB.NET.
Neither of these functions return anything once my application is published
If domain and username specified something like "DOMAIN\username" in AD
"DOMAIN\username"
HttpContext.Current.User.Identity.Name.Split('\\')[0] returns the Domain
HttpContext.Current.User.Identity.Name.Split('\\')[0]
and
HttpContext.Current.User.Identity.Name.Split('\\')[1] returns the username
HttpContext.Current.User.Identity.Name.Split('\\')[1]