Click here to Skip to main content
15,922,015 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have added a user login with the ordinary asp.net database created by visual studio (Create user wizard control).
I need to conserve the user's id in a separate database once user is created by the wizard and can't find the solution.....
Any answers????
Thank you!!
Posted
Comments
Tejas Vaishnav 9-Dec-11 7:46am    
Provide some code or more detail so it will more understandable....

The standard Membership provider expects to only keep things in the standard database - if you want to copy the id into a separate database then you have two choices:

1) Add code to the Create User page that the wizard uses.
2) Provide a custom Membership provider[^] and do all the database stuff yourself.

Personally, I would go for the second option, as maintaining two separate databases with the same info in synch is more trouble than it is worth.
 
Share this answer
 
Comments
Monjurul Habib 9-Dec-11 15:20pm    
5!
Handle the CreatedUser[^] event and insert the necessary information into your database.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900