Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. UserName!

UserName!

Scheduled Pinned Locked Moved ASP.NET
securityquestion
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nclauder
    wrote on last edited by
    #1

    Hi guys I'm using window authentication But I'm falling little bit in trouble. I'm using this code: Page.User.Identity.Name; But it is bringing the Login Id, but I want to get the Name of the User. How could I do this? Thanks

    V 1 Reply Last reply
    0
    • N nclauder

      Hi guys I'm using window authentication But I'm falling little bit in trouble. I'm using this code: Page.User.Identity.Name; But it is bringing the Login Id, but I want to get the Name of the User. How could I do this? Thanks

      V Offline
      V Offline
      varshavmane
      wrote on last edited by
      #2

      U are still with the same problem???Anyways tell me which name of the User u what?? Windows or ur application user name....

      N 1 Reply Last reply
      0
      • V varshavmane

        U are still with the same problem???Anyways tell me which name of the User u what?? Windows or ur application user name....

        N Offline
        N Offline
        nclauder
        wrote on last edited by
        #3

        The Windows Login Name is different From the user name. Lets say My login name is ot0023, But My name is Douglas, Using the privious code I would get oth0023. So this time I want to get Douglas in place of oth0023. Is that possible. Thanks

        V 1 Reply Last reply
        0
        • N nclauder

          The Windows Login Name is different From the user name. Lets say My login name is ot0023, But My name is Douglas, Using the privious code I would get oth0023. So this time I want to get Douglas in place of oth0023. Is that possible. Thanks

          V Offline
          V Offline
          varshavmane
          wrote on last edited by
          #4

          I think this u can get only from DB and for this u know what u have to do...Still I will try is there any other way to do so....

          N 1 Reply Last reply
          0
          • V varshavmane

            I think this u can get only from DB and for this u know what u have to do...Still I will try is there any other way to do so....

            N Offline
            N Offline
            nclauder
            wrote on last edited by
            #5

            Thanks, I'm not so sure if I got what you ment? DataBase? if you can could you explain please? Thanks

            M 1 Reply Last reply
            0
            • N nclauder

              Thanks, I'm not so sure if I got what you ment? DataBase? if you can could you explain please? Thanks

              M Offline
              M Offline
              Marcus J Smith
              wrote on last edited by
              #6

              You are going to have to look at Active Directory to translate that value. This Google search may help some[^]


              CleaKO

              "I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy)
              "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups