last created userID

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Keith G Hicks

    last created userID

    Asp.net 2.0 - coding in VB

    I'm trying to get the UserID of the last created user so I can use the value
    in another table. I'm not finding anything otu there that works for what I'm
    trying to do.

    I want the value of teh UserID column in the aspnet_Users table. I'm using
    the CreateUserWizar d and have tried to get the UserID in its CreatedUser
    event handler. Everything I come up with is the user that was created
    previously.

    I need clear details since I'm very new at this.

    THanks for any help,

    Keith


  • Keith G Hicks

    #2
    Re: last created userID

    Well I'm really surprised nobody's answered this one yet but I think I know
    what to do. I'm still trying to learn as much of this as I can. I guess if I
    know the user name of the new user, I can write some sql code to get the
    value of the UserID column. Not sure why I didn't think of that before but I
    guess I figured the UserID would be a simple Membership property.

    Keith

    "Keith G Hicks" <krh@comcast.ne twrote in message
    news:OI9zcwBdIH A.748@TK2MSFTNG P04.phx.gbl...
    Asp.net 2.0 - coding in VB
    >
    I'm trying to get the UserID of the last created user so I can use the
    value
    in another table. I'm not finding anything otu there that works for what
    I'm
    trying to do.
    >
    I want the value of teh UserID column in the aspnet_Users table. I'm using
    the CreateUserWizar d and have tried to get the UserID in its CreatedUser
    event handler. Everything I come up with is the user that was created
    previously.
    >
    I need clear details since I'm very new at this.
    >
    THanks for any help,
    >
    Keith
    >
    >

    Comment

    Working...