So, i have my virtual directory with Anonymous Access disabled. I allow users to login to my app through the windows server login.
I wish to know how i can, through the code, capture the username that is logging in.
Is this possible?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
HttpRequest.Current.User.Identity.Nameor simplyUser.Identity.Nameif you are in aPageshould give you the name of the user currently logged in.