Member class deprecated... How to update member properties then?
Hello,
I've follow some of the articles about creating custom registrations and is all working perfectly. However, I am getting a deprecated warning on this call:
Member member = Member.GetMemberFromLoginName(txtEmailAddress.Text.Trim());
It tells me I should use the ASP Membership provider call instead, which is fine, but then how would I update my Member properties? I am currently updating them like this:
Perhaps you can find the answer in this blogpost by Aaron Powell where he's explaining how to get and set properties in the member section of Umbraco 4.x
The trouble with deprecating the old Member classes is that they actually provide a very convenient basic wrapper for the ASP.NET stuff, which you'd have to write yourself anyway for any useful member system on a medium sized site; for example, having to change the web.config every time you add a new property to a Member is really unwieldy.
What I have ended up having to do is create a wrapper myself that currently wraps the Umbraco Member wrapper, so if the deprecation becomes removal I can just fix my wrapper - but this seems a bit like overkill to me!
It's neat having everything tied into the ASP.NET, but the fact that the web.config requirements spoil Umbraco's wonderful dynamic property system is deeply irritating.
I completely agree with Rob. In fact CMSImport still uses the deprecated classes (they are still functional). One other thing that you can't do with the asp.net profile provider is to set the Member.Text property which is displayed in the back-end .
Member class deprecated... How to update member properties then?
Hello,
I've follow some of the articles about creating custom registrations and is all working perfectly. However, I am getting a deprecated warning on this call:
It tells me I should use the ASP Membership provider call instead, which is fine, but then how would I update my Member properties? I am currently updating them like this:
Any ideas? Suggestions?
Thanks!
-Ricardo
Hi Ricardo
Perhaps you can find the answer in this blogpost by Aaron Powell where he's explaining how to get and set properties in the member section of Umbraco 4.x
http://www.aaron-powell.com/umbraco-members-profiles
Hope this helps.
/Jan
Awesome. Exactly what I needed.
Thanks!
-Ricardo
The trouble with deprecating the old Member classes is that they actually provide a very convenient basic wrapper for the ASP.NET stuff, which you'd have to write yourself anyway for any useful member system on a medium sized site; for example, having to change the web.config every time you add a new property to a Member is really unwieldy.
What I have ended up having to do is create a wrapper myself that currently wraps the Umbraco Member wrapper, so if the deprecation becomes removal I can just fix my wrapper - but this seems a bit like overkill to me!
It's neat having everything tied into the ASP.NET, but the fact that the web.config requirements spoil Umbraco's wonderful dynamic property system is deeply irritating.
Hi Ricardo,
I completely agree with Rob. In fact CMSImport still uses the deprecated classes (they are still functional). One other thing that you can't do with the asp.net profile provider is to set the Member.Text property which is displayed in the back-end .
Cheers,
Richard
Thanks!
is working on a reply...