473,503 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Membership Provider

Sorry for cross post, forgot to include aspnet in orinal...

Thanks in advance for any assistance.

I'm in the process of implementing custom RoleProvider & Membership Provider
objects and have run into a snag with the Membership Provider.

It seems many of the MembershipUser properties are read-only. This seems,
well stupid, IMO.

I can override these in a class that inherits from MembershipUser and set
them via parameters in the constructor, but that's a lot of work for what
seems should be read-write properties, especially when implementing a custom
provider for another data store. For example, IsLockedOut is read
only?Shouldn't I be able to write to this property when returning a
MembershipUser for the GetUser method?

My question is, is there any other way to access these read only properties?
Have I missed something obvious?

Thanks again,

Morgan
Dec 6 '05 #1
3 2425
Hi Morgan,

Welcome to ASPNET newsgroup.
As for the MembershipUser class, yes, it has many properteis defined as
readonly. Based on my understanding, those properties are mainly configured
through administration interfaces(most of such methods are defined in
MembershipProvider class), e.g lock a user when the user created and then
active through updating later(through the
SqlMembershipProvider.UnlockUser()).... And all these information stored in
database should not changed outside by normal client application which use
the membership info.... Client application just need to query these
information through GetUser method(retrieved from backend database
storage).... I think that's the reason the buildin MembershipUser class
marked them as readonly .... Of course, we can override or replace them
to all read/writeable in our custom membership framework....

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| From: "Morgan" <ab**@senditon.com>
| Subject: Membership Provider
| Date: Tue, 6 Dec 2005 12:15:29 -0500
| Lines: 25
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| Message-ID: <#H**************@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 168-215-79-61.gen.twtelecom.net 168.215.79.61
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:363128
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Sorry for cross post, forgot to include aspnet in orinal...
|
| Thanks in advance for any assistance.
|
| I'm in the process of implementing custom RoleProvider & Membership
Provider
| objects and have run into a snag with the Membership Provider.
|
| It seems many of the MembershipUser properties are read-only. This seems,
| well stupid, IMO.
|
| I can override these in a class that inherits from MembershipUser and set
| them via parameters in the constructor, but that's a lot of work for what
| seems should be read-write properties, especially when implementing a
custom
| provider for another data store. For example, IsLockedOut is read
| only?Shouldn't I be able to write to this property when returning a
| MembershipUser for the GetUser method?
|
| My question is, is there any other way to access these read only
properties?
| Have I missed something obvious?
|
| Thanks again,
|
| Morgan
|
|
|

Dec 7 '05 #2
Thanks, Steven.

"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:iC****************@TK2MSFTNGXA02.phx.gbl...
Hi Morgan,

Welcome to ASPNET newsgroup.
As for the MembershipUser class, yes, it has many properteis defined as
readonly. Based on my understanding, those properties are mainly
configured
through administration interfaces(most of such methods are defined in
MembershipProvider class), e.g lock a user when the user created and then
active through updating later(through the
SqlMembershipProvider.UnlockUser()).... And all these information stored
in
database should not changed outside by normal client application which use
the membership info.... Client application just need to query these
information through GetUser method(retrieved from backend database
storage).... I think that's the reason the buildin MembershipUser class
marked them as readonly .... Of course, we can override or replace them
to all read/writeable in our custom membership framework....

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| From: "Morgan" <ab**@senditon.com>
| Subject: Membership Provider
| Date: Tue, 6 Dec 2005 12:15:29 -0500
| Lines: 25
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| Message-ID: <#H**************@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 168-215-79-61.gen.twtelecom.net 168.215.79.61
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:363128
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Sorry for cross post, forgot to include aspnet in orinal...
|
| Thanks in advance for any assistance.
|
| I'm in the process of implementing custom RoleProvider & Membership
Provider
| objects and have run into a snag with the Membership Provider.
|
| It seems many of the MembershipUser properties are read-only. This
seems,
| well stupid, IMO.
|
| I can override these in a class that inherits from MembershipUser and
set
| them via parameters in the constructor, but that's a lot of work for
what
| seems should be read-write properties, especially when implementing a
custom
| provider for another data store. For example, IsLockedOut is read
| only?Shouldn't I be able to write to this property when returning a
| MembershipUser for the GetUser method?
|
| My question is, is there any other way to access these read only
properties?
| Have I missed something obvious?
|
| Thanks again,
|
| Morgan
|
|
|

Dec 8 '05 #3
You're welcome Norgan,

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Morgan" <no****@spam.com>
| References: <#H**************@TK2MSFTNGP12.phx.gbl>
<iC**************@TK2MSFTNGXA02.phx.gbl>
| Subject: Re: Membership Provider
| Date: Wed, 7 Dec 2005 21:15:20 -0500
| Lines: 89
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <OF**************@TK2MSFTNGP14.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 12-222-91-80.client.insightbb.com 12.222.91.80
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP14.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:363534
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Thanks, Steven.
|
| "Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
| news:iC****************@TK2MSFTNGXA02.phx.gbl...
| > Hi Morgan,
| >
| > Welcome to ASPNET newsgroup.
| > As for the MembershipUser class, yes, it has many properteis defined as
| > readonly. Based on my understanding, those properties are mainly
| > configured
| > through administration interfaces(most of such methods are defined in
| > MembershipProvider class), e.g lock a user when the user created and
then
| > active through updating later(through the
| > SqlMembershipProvider.UnlockUser()).... And all these information
stored
| > in
| > database should not changed outside by normal client application which
use
| > the membership info.... Client application just need to query these
| > information through GetUser method(retrieved from backend database
| > storage).... I think that's the reason the buildin MembershipUser
class
| > marked them as readonly .... Of course, we can override or replace
them
| > to all read/writeable in our custom membership framework....
| >
| > Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| >
| >
| >
| >
| > --------------------
| > | From: "Morgan" <ab**@senditon.com>
| > | Subject: Membership Provider
| > | Date: Tue, 6 Dec 2005 12:15:29 -0500
| > | Lines: 25
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| > | X-RFC2646: Format=Flowed; Original
| > | Message-ID: <#H**************@TK2MSFTNGP12.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: 168-215-79-61.gen.twtelecom.net 168.215.79.61
| > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:363128
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | Sorry for cross post, forgot to include aspnet in orinal...
| > |
| > | Thanks in advance for any assistance.
| > |
| > | I'm in the process of implementing custom RoleProvider & Membership
| > Provider
| > | objects and have run into a snag with the Membership Provider.
| > |
| > | It seems many of the MembershipUser properties are read-only. This
| > seems,
| > | well stupid, IMO.
| > |
| > | I can override these in a class that inherits from MembershipUser and
| > set
| > | them via parameters in the constructor, but that's a lot of work for
| > what
| > | seems should be read-write properties, especially when implementing a
| > custom
| > | provider for another data store. For example, IsLockedOut is read
| > | only?Shouldn't I be able to write to this property when returning a
| > | MembershipUser for the GetUser method?
| > |
| > | My question is, is there any other way to access these read only
| > properties?
| > | Have I missed something obvious?
| > |
| > | Thanks again,
| > |
| > | Morgan
| > |
| > |
| > |
| >
|
|
|

Dec 8 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3536
by: John | last post by:
Hi I was working fine with create user wizard and the default membership provider. I have now customised the membership provider as per attached web.config. The create user wizard picks up the...
3
7096
by: ad | last post by:
I have create a custom membership provider. The common usage of custom membership is set it as default Membership Provider win web.config, and use login controls with it. How can I use custom...
9
2154
by: Paul Keegstra | last post by:
Hi, I am currently working on an asp.net 2.0 web site that is a replacement of a classic asp web site. The current web site uses a Commerce Server 2002 database for storing user information. ...
2
14119
by: Balaji | last post by:
Hi All, Can I use more than one membership provider for a given website? I understand only one of them could be default one. If yes, then how to programmatically access the other membership...
3
3264
by: ryan.mclean | last post by:
Hello everyone, I am wondering, can the membership provider be changed at runtime? Perhaps the connectionStringName? I would like to use a different database based on the server the site is...
4
7211
by: thomas | last post by:
Hello All, How to change the default Membership Provider during the runtime? I know I can reference any provider I want, e.g.: provider = Membership.Providers but the question is how to...
4
4718
by: =?Utf-8?B?Q2hyaXMgQ2Fw?= | last post by:
I have been having some trouble with implementing a custom Membership Provider. We have a custom data store and business logic that pulls user information. I need some level of functionality...
1
14290
by: Ben | last post by:
Hi, When an anonymous user has created an new account (with the CreateUserWizard control), i want to let asp.net generate a password and to send it to the address of the email provided by the...
6
2916
by: Jonathan Wood | last post by:
Although this will be a challenge at my level of ASP.NET knowledge, I'm thinking I should implement my own membership provider class. Looking over the methods I must implement, a number of...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7348
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
5021
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3166
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1519
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
397
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.