hope if someone can help me. i have a simple webpage nad i want to display a windows user name on my webpage. i just need the user name from the windows on my webpage.
i had use some codes do do that but no result like
HttpContext.Current.User.Identity.Name
but it is giving me empty string
also i have tried
system.envoirement.username
its work when i run it from vistual studio but this code not give me the right answer when ii run it from IIS. i am going to use this webpage as my Intranet on local network.
any reply will be appreciated.
Thanks in advanced.