I have a web application with a Sql backend. It also has ASP .Net forms authentication enabled with users and groups setup. For certain areas i would require the user to have a username and password to view content. The problem i have is when a user hits a button it runs this code:
Return Environment.UserName
This shows me the logged on username as expected, but when i deploy the application i have Network Service, I unticked allow anonymous access in IIS for this site and it still returns as Network Service. How could i retrieve the logged on users name and not Network Service?
Thanks
...
Go to the complete details ...