User.Identity.Name

Discussion in 'ASP .Net' started by Guest, Jun 8, 2007.

  1. Guest

    Guest Guest

    I use Form Authentication in VS2003 app. I ha ev a table for UserName,
    LoginName and Password.
    Throughout appliation I can use User.indetity.name to retrive data. But I
    running into the situation I have two user using the exactly same FirstName
    and LastName.
    How do I do something like User.Identity.Password or User.Identity.LoginName?

    JimmyChang
     
    Guest, Jun 8, 2007
    #1
    1. Advertisements

  2. Guest

    Guest Guest

    User.Identity.Name generally represents the logon name, which is supposed to
    be unique. It doesn't represent first name or last name.
     
    Guest, Jun 8, 2007
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.