Extend the Membership Provider to include more user data

Discussion in 'ASP .Net' started by Guest, Jan 5, 2006.

  1. Guest

    Guest Guest


    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.

    Guest, Jan 5, 2006
    1. Advertisements

  2. Guest

    P. Wills Guest

    P. Wills, Jan 5, 2006
    1. Advertisements

  3. Guest

    Guest 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!
    Guest, Jan 5, 2006
  4. Guest

    Guest 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.

    Guest, Jan 5, 2006
  5. Guest

    Guest Guest

    Wow! Exactly what I was looking for.
    Thank you very much!
    Guest, Jan 5, 2006
  6. Guest

    Scott Allen Guest

    Scott Allen, Jan 6, 2006
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.