Solved

ASP.NET Membership Provider -

Posted on 2007-03-20
8
425 Views
Last Modified: 2011-04-14
Hi experts,
   I want to set up a Membership provider for an asp.net 2.0 application. The provider will use a sql server 2005 database. The user table contains email addess and user name and password and security question and security answer but also various other fields for address and postcode and job title and various telephone numbers etc. I also want to hold adresses in a separte table linked by a foreign key and also security questiion details, user types and user status details in separate tables and have access to the data managed through the membership provider. What I'm confused about is whether I can include these extra fields in the user table and use the built in membership provider or whether I need to extend the built in membership provider or whether I need to produce a custom membership provider.
0
Comment
Question by:JamesJMcDonnell
  • 5
  • 2
8 Comments
 
LVL 19

Expert Comment

by:DreamMaster
ID: 18755741
You could try profiles:

http://msdn2.microsoft.com/en-us/library/taab950e(vs.80).aspx
http://weblogs.asp.net/scottgu/archive/2005/10/18/427754.aspx

Especially Scott Gu's entry on this is very easily understandable and very clear.

Regards,
Max.
0
 

Author Comment

by:JamesJMcDonnell
ID: 18756210
Thanks Max,
   However, I want to avoid using the profile store. I want to use one SQL Server table, tblUser, to store the main user information. User records are being created in the application through registration but are also being imported into the application from another application.

Regards
James
0
 
LVL 19

Accepted Solution

by:
DreamMaster earned 500 total points
ID: 18759647
In that case you will HAVE to extend the membership provider to add the extra fields.

Regards,
Max.
0
ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

 
LVL 3

Expert Comment

by:Kate12
ID: 18762609
I agree with Sage. I have done this in the past and you'll have to extend your membership provider.
0
 
LVL 19

Expert Comment

by:DreamMaster
ID: 18762898
LOL, Sage is my rank, not my name Kate12 ;)

Regards,
Max.
0
 
LVL 3

Expert Comment

by:Kate12
ID: 18762912
Yo!  But "DreamMaster" was too much for my self-ego to speak out you true name.... :-p
0
 
LVL 19

Expert Comment

by:DreamMaster
ID: 18764316
Max would have been fine as well ;) Sorry JamesJMCdonnell for making a mess of your question.

Regards,
Max.
0
 
LVL 19

Expert Comment

by:DreamMaster
ID: 18781640
Glad to have been helpful :)

Regards,
Max.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question