MembershipProvider.GetAllUsers Method instead of Member.GetAll
I have been trying to display custom member property data in one of my webpage. If I ever try Member.GetAll, it says that it is obsolote. In place of it MembershipProvider.GetAllUsers is recommended.
How can I reach custom member property data using MembershipProvider.GetAllUsers? Any example would be great.
Yup, go for the obsolete methods, altho I think there should be a way of doing it, but may require some work.. Found some references on SO regarding this, and it may be a solution, altho haven't tried it... Here's the link
If there is another (or better) way of doing it, would love to hear about it.
MembershipProvider.GetAllUsers Method instead of Member.GetAll
I have been trying to display custom member property data in one of my webpage. If I ever try Member.GetAll, it says that it is obsolote. In place of it MembershipProvider.GetAllUsers is recommended.
How can I reach custom member property data using MembershipProvider.GetAllUsers? Any example would be great.
Any idea guys?
I really need help on this issue, guys...
You don't actually HAVE to use anything else. Obsolete doesn't mean it doesn't work any more.. But, how about so:
I just get the following error
Unable to cast object of type 'System.Web.Security.MembershipUser' to type 'umbraco.cms.businesslogic.member.Member'
Hmmm, well I haven't tried this code, in that case you should probably just use the obsolete method for now unless someone else has a better idea.
OK then, unless someone else has better idea, I should take the obsolete method. Thanks
Yup, go for the obsolete methods, altho I think there should be a way of doing it, but may require some work.. Found some references on SO regarding this, and it may be a solution, altho haven't tried it... Here's the link
If there is another (or better) way of doing it, would love to hear about it.
Cheers,
/Dirk
is working on a reply...