Connecting Tech Pros Worldwide Forums | Help | Site Map

last created userID

Keith G Hicks
Guest
 
Posts: n/a
#1: Feb 21 '08
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 CreateUserWizard 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
Guest
 
Posts: n/a
#2: Feb 26 '08

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.netwrote in message
news:OI9zcwBdIHA.748@TK2MSFTNGP04.phx.gbl...
Quote:
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
Quote:
in another table. I'm not finding anything otu there that works for what
I'm
Quote:
trying to do.
>
I want the value of teh UserID column in the aspnet_Users table. I'm using
the CreateUserWizard 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
>
>

Closed Thread