Re: How to get of last created user using CreateUserWizard?
From: Brock Allen (ballen_at_NOSPAMdevelop.com)
Date: 07/22/05
- Previous message: Rodusa: "How to get of last created user using CreateUserWizard?"
- In reply to: Rodusa: "How to get of last created user using CreateUserWizard?"
- Next in thread: Rodusa: "Re: How to get of last created user using CreateUserWizard?"
- Reply: Rodusa: "Re: How to get of last created user using CreateUserWizard?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 22 Jul 2005 14:56:40 -0700
The CreateUserWizard fires a UserCreated event. Once that's fired, you can
access the Username and Password properties of the control. With the Username
if you need to you should be able to call into the Membership class to get
anything else you need.
-Brock
DevelopMentor
http://staff.develop.com/ballen
> Could someone please recommend the best way and how to obtain the last
> inserted userid of users (security) table using the Button click event
> of CreateUserWizard? In classic Asp and Asp.net 1.x I used the
> @@identity to get the last inserted record of my custom table, but now
> I don't know how Asp.net does that. I would like to understand how it
> works behind the scenes, the sequence of processing. I saw that there
> is an event called createuser in CreateUserWizard control which is
> fired after the user is created. Is this the best place to implement
> the get the last userid? In addition, is it safe? Does it garantee
> that no other user will get that userid and that locks that value to
> used in this same event?
>
> Thanks Rod
>
- Previous message: Rodusa: "How to get of last created user using CreateUserWizard?"
- In reply to: Rodusa: "How to get of last created user using CreateUserWizard?"
- Next in thread: Rodusa: "Re: How to get of last created user using CreateUserWizard?"
- Reply: Rodusa: "Re: How to get of last created user using CreateUserWizard?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]