Results 1 to 2 of 2

Thread: User.Identity.Name.ToString

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2004
    Posts
    11

    User.Identity.Name.ToString

    Hello to everybody, i have a problem with Form authentication, when i try to get name of user logged in code below

    VB Code:
    1. Dim NameUsr As String = User.Identity.Name.ToString
    2.             Dim Roles As String = GetRoles(NameUsr)
    3.             Dim ArrRoles() As String = Split(Ruoli, ",")
    4.             Dim Roles As New System.Security.Principal.GenericIdentity(NameUsr)
    5.             Context.User = New System.Security.Principal.GenericPrincipal(Ruolo, ArrRoles)
    the name of NameUsr is name of page instead of user.
    Anybody know why ?
    thanks !!

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    post your authentication (logon) code.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width