Tuesday, January 22, 2008

ASP Retrieving Login Name

Issue: I wanted to retrieve the user name that is currently logged in using Visual Basics in the ASP.NET Environment. I had used the built in logging in system

Solution: Using the following code retrieves the text need.

HttpContext.current.user.identity.name

Note: Thought was important to Blog due to always referring to it.