
On 18 June 2009, In Umbraco, by Simon Dingley
In a project I am currently working on there is a facility for Umbraco users to export Membership and Profile data. As part of the export the client also wanted to include the groups a member belongs to and here is how I achieved it, I hope it is of use to someone else.
Member m = new Member(mid);
// Loop through the member groups and add them to the field
foreach (MemberGroup mg in m.Groups.Values)
{
//- Do your stuff in here, e.g.
csv.Append(mg.Text); // Appends the Member group name
}
More From ProNotion
Related Posts
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.







One Response
Works great. However these methods are obsolete. How about updating it with the standard asp.net membership methods?