Im trying to understand how windows authentication works and how to implement it. Ive read quite a few articles and watched some quite length videos on youtube but i still c
You are confusing SQL authentication with Windows authentication.
In order for this web page to work based on Windows authentication, your web.config needs
When you deploy your page to a web server, you need to disable anonymous authentication to restrict external users. Below is a snippet from an IIS7+ web server's authentication section:
If you need to program against logged in user or its group, you need to use the WindowsIdentity Class.