Security Server Controls

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • n I c H o L a S

    Security Server Controls

    I am using the Login, LoginName, LoginStatus and LoginView controls in
    my ASP.NET 2.0 website. I need to be able to control user access at a
    more fine grained level in my C# code but I can not figure out how to
    get the username of the current logged in user. None of the above
    controls seem to expose the username as a property. Am I missing
    something here is there a special way to get the username?
  • =?Utf-8?B?c3VidGlsZQ==?=

    #2
    RE: Security Server Controls

    The Login Control has a UserName property..

    You can also retrieve it by code after login

    User.Identity.N ame;

    --

    Jesus Loves You


    "n I c H o L a S" wrote:
    I am using the Login, LoginName, LoginStatus and LoginView controls in
    my ASP.NET 2.0 website. I need to be able to control user access at a
    more fine grained level in my C# code but I can not figure out how to
    get the username of the current logged in user. None of the above
    controls seem to expose the username as a property. Am I missing
    something here is there a special way to get the username?
    >

    Comment

    • n I c H o L a S

      #3
      Re: Security Server Controls

      Thanks

      Comment

      Working...