I am going to use Create User Wizard in order to let a user create their account for this company web site. I’d like to add one more step after new account is created, but I can’t find the way to do it. What I want to do is that verify the use as a current employee of this company. This is not open web site for everyone, so only current employee can create a user account in this site.
This is the step that I need to implement.
- Ask employee ID and Name to verify whether he or she is current employee or not.
- If yes, the Create User Wizard step will start. I will show the Employee ID on top of this wizard.
- When a user account is created successfully, I need to insert UserID from aspnet_Users table and Employee ID into additional table as a reference.
I can’t figure where I can do step 3 for coding.
I am guessing that I need to do it on “Create User” button event, But I also need to know whether a user account is successfully created or not.
Please, let me know.
When I last did this, I just subscribed to CreatedUser and it worked great for me.
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.createuserwizard.createduser.aspx