Answer: It can be done by using this code snippet
Write it in an event handler (Page_Load for example)
if (User.Identity.IsAuthenticated == true)
{
Response.Write(User.Identity.Name + "---" + "authenticated");
}
It will display the Windows user name if authenticated
Asked In: Many Interviews |
Alert Moderator