last created userID

K

Keith G Hicks

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
 
K

Keith G Hicks

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
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,163
Latest member
Sasha15427
Top