Dim
sm As Generic.List(Of SectionMembership) = CommunityServer.Components.SectionMemberships.GetSectionMemberships(CommunityServer.Components.CSContext.Current.UserID, False)
This does not return anything. Anbody know why? The UserID im using is active in many sections.
CSContext.Current.UserID represents the ID of the user identified on the querystring, not the *current* user.
The current user's ID should be accessed using CSContext.Current.User.UserID.
sm As Generic.List(Of SectionMembership) = CommonDataProvider.Instance().GetSectionMembership(userID)
works though, why is that?
ahhh. thanks for that!
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com