HI
I am having difficulty gettting the current users username in a web application because the web app is set to use a specific account.
if i use 'Page.User.Identity.Name' it returns nothing nad if i use 'System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString()' it returns the details of the account used in the IIS (so is always the same)
Hoe can i get the current users username? I need to search Active Directory to get their email address.
The settings in my web.config are:
'
<authentication mode="Windows"/>
<identity impersonate="true"/>
'
many thanks