Getting slkuser info from memberships.learners

Mar 12, 2008 at 9:23 PM
In my project we use SLK. In this, I need to find user name in memberships.learners object.

For this, I loop through memberships.learners and find the required the user

I had given the code below

foreach (SlkUser slkUser in memberships.Learners)
{
// UserID contains the user name
Int32 lsPosition1 = (slkUser.Name.ToUpper().IndexOf(UserID.ToUpper(), 0));
if (lsPosition1 > 0)
{

long userKey;
//Get the Userkey
userKey = slkUser.UserId.GetKey();
}
}

Since there are more than 1000 users, this process takes too long. Is there a better way to get the slkuser info from membership.learners??

Regards

Jay

Mar 18, 2008 at 6:34 PM
Can any one help me out??

Regards

Jay
Mar 19, 2008 at 8:29 PM
You'll get a better result if you post your SLK questions to the forums on www.codeplex.com/slk. www.codeplex.com/codeplex is a support site for the Codeplex project management system itself.