You need to execute server-side code to be able to get the username of the currently logged in Windows user. If you are using Windows authentication you can get the username by accessing User.Identity.Name.
To get rid of the popup asking for credentials for logged in users in IE, go to Tools -> Internet Options -> Security -> Custom Level -> "Automatic Login with current user name and password” -> OK -> OK -> Close and reopen browser.
Note that is a browser setting and you can't do much about it from the server-side.
No comments:
Post a Comment