Last post Jul 29, 2011 07:40 AM by chirdeep_tomar
Jul 22, 2011 04:36 PM|fil|LINK
Is it possible from me to use the memberShipProvider, roleProvider, and ProfileProvider to do the following:
I am building a site that will have multiple user types.
Customers, Sales People, and Admin/Customer Service
Each user type will require totally different fields for registration and their profile. Also, each user type will have different accessible content.
How do I store these different types of users. I really want to use 3 different tables.
Do I need to create 3 separate membershipProviders and profileProviders
Can someone point me to an example or instructions on how to do this using the ASP.NEt provider tools.
Jul 23, 2011 01:46 AM|ignatandrei|LINK
PLease see http://www.4guysfromrolla.com/articles/120705-1.aspx - especially part 18 (often, applications need to track additional user information).
Jul 27, 2011 01:43 PM|fil|LINK
I have looked at the example and it was a great help. Thanks!
i have started to implment a custom memershipProvider and have a user getting created.
The question I have is how do I use this CreateUser method to create the different types of users.
Jul 29, 2011 07:40 AM|chirdeep_tomar|LINK
Look at aspnetdb database, aspnet_users, aspnet_roles and aspnet_userinroles.
I am assuming you will still need a roles table where you will store usertypes...then when you create a new user, you just assign it to the right role, same way as default membership works in asp.net.