Tuesday, August 12, 2008

Get User name in ASP.NET when using Windows Authentication

IIS ->Property->Directory Security->Authentication Methods

Disable Anonymous access in IIS, check integrated Windows Authentication AND use User.Identy.Name to get username.