Re: How to get of last created user using CreateUserWizard?
From: Rodusa (rclwebdesign_at_yahoo.com)
Date: 07/25/05
- Next message: Brock Allen: "Re: How to get of last created user using CreateUserWizard?"
- Previous message: Joe Kaplan \(MVP - ADSI\): "Re: The server is not operational"
- In reply to: Brock Allen: "Re: How to get of last created user using CreateUserWizard?"
- Next in thread: Brock Allen: "Re: How to get of last created user using CreateUserWizard?"
- Reply: Brock Allen: "Re: How to get of last created user using CreateUserWizard?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 25 Jul 2005 09:22:04 -0700
Brock, I am new to security in Asp.net 2.0. Can you provide some
example of how to get the last created userid using the
membershipclass?
Thank you
Rod
Brock Allen wrote:
> 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
> >
- Next message: Brock Allen: "Re: How to get of last created user using CreateUserWizard?"
- Previous message: Joe Kaplan \(MVP - ADSI\): "Re: The server is not operational"
- In reply to: Brock Allen: "Re: How to get of last created user using CreateUserWizard?"
- Next in thread: Brock Allen: "Re: How to get of last created user using CreateUserWizard?"
- Reply: Brock Allen: "Re: How to get of last created user using CreateUserWizard?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]