Extend the Membership Provider to include more user data

G

Guest

Hello.

I would like to know what is the easiest and safest way to extend the
default MemberShip Provider for SQL Server 2005 to include additional user
data (eg HomePhone, City, State etc).

Previous posts suggest deriving from SqlMembershipProvider, others suggest
storing the extra information in the user profile.

Thanks for any help provided.

Rob
 
G

Guest

It depends on what your goals are. Adding to Profile is a simple mechanism
for additional data. It requires very little in the way of customization and
makes the info easily available for the web application. This may not be
where you want to store this type of data; if not, it is a non-solution.

If this does not fit, making a new provider derived from the default (to
inherit what you already have) is a great option.

Think of the following questions:
1. What are you trying to accomplish?
2. Why?

The how is normally dictated by the answers above.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
G

Guest

Thanks for your response Gregory.

I simply want to capture additional user information when a new user
registers with our web site. The plan is to use the CreateUserWizard control
on a register page with the additional fields and then write these values
somewhere in the db.

Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top