Re: Membership when more info is needed for a User

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



You should look first at the Profile to see if its enough to help you.


http://odetocode.com/Articles/440.aspx


If you're using SqlServer, you ~can~ inherit from
SQLMembershipProvider.

Not everyone uses sql server obviously.



"Savvoulidis Iordanis" <SavvoulidisIordanis@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote
in message news:E4BAD51A-C1E0-40A9-B4B6-2E660C827090@xxxxxxxxxxxxxxxx
I use SQL Server Membership provider and my data are also stored in SQL
Server. But the default user fields are not enough for my users info. So I
created another Users table apart from aspnet_Membership. It has a
PK(uniqueidentifier) to create the reference to aspnet_Membership table
and
my other info columns.
Having read about the Custom Membership Provider in .NET help, it says
that
I should create a new object inherited from MembershipProvider and rewrite
all of its methods so it can be used by the membership system calls.
The question is:
Why not inherit from SQLMembershipProvider instead of MembershipProvider?
That way, most of the methods are already implemented and the only thing I
would do is to override the CreateUser, UpdateUser, GetUser methods, that
is,
only a few
. In the 1st line of the overriden methods, I could use Mybase.CreateUser,
Mybase.UpdateUser and so on, and just add the rest of the stuff I want to
do
to deal with my extra info.
Am i in the right direction? I'd like a comment.

TIA
Iordanis


.



Relevant Pages

  • Re: ASP.NET 2.0 Membership Provider Customization
    ... -- Write my own MembershipProvider that is derived from SqlMembershipProvider ... > Hello Oldman, ... > if you write your own provider you are facing the same problems - btw... ... >> Then my own membership provider stores the info. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: ASP.NET 2.0 Membership - change username
    ... interface for updating membership user's useranme after creation. ... it is designed that the username is considered part of the membership's ... directory which contains all the SqlMembershipProvider used sql scripts.... ... Microsoft Online Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • Strange behavour with SqlMembershipProvider and impersonation
    ... I've got a problem with SqlMembershipProvider and impersonation ... I'm using forms authentication for membership on the site, ... database using impersonation and a connection string including ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Mixed Windows Domain and SQL Server Membership in 2.0
    ... I've got a website where I am using 2.0 Membership services. ... network (i.e. Windows authentication) to access the site without having ... and Forms authentication using SqlMembershipProvider to validate users ... I would be fine having all users be users/members within the SQL Server ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: SqlServer membership/role - Web.Config
    ... Forms Authentication and the MemberShip Provider is the default ... And the SqlMembershipProvider use all the default ... This posting is provided "AS IS" with no warranties, and confers no rights. ...
    (microsoft.public.dotnet.framework.aspnet.security)