How to get the authenticated user ASP.net

On 14 January 2011, in ASP.net, by Himselff
' Gets the name if authenticated.
If User.Identity.IsAuthenticated Then
    Label1.Text = User.Identity.Name
Else
    Label1.Text = "No user identity available."
End If
 

Comments are closed.