Пример #1
0
    private static string GetContactListValues()
    {
        DataSet contactList = ContactListInfoProvider.GetContactList(MembershipContext.AuthenticatedUser.UserID, null, null, 0, "UserName,UserNickname,ContactListContactUserID");

        if (!DataHelper.DataSourceIsEmpty(contactList))
        {
            return(TextHelper.Join(";", DataHelper.GetStringValues(contactList.Tables[0], "ContactListContactUserID")));
        }

        return(String.Empty);
    }
Пример #2
0
    private static string GetContactListValues()
    {
        DataSet contactList = ContactListInfoProvider.GetContactList(CMSContext.CurrentUser.UserID, null, null, 0, "UserName,UserNickname,ContactListContactUserID");

        if (!DataHelper.DataSourceIsEmpty(contactList))
        {
            return(TextHelper.Join(";", SqlHelperClass.GetStringValues(contactList.Tables[0], "ContactListContactUserID")));
        }

        return(String.Empty);
    }
 protected DataSet gridContactList_OnDataReload(string completeWhere, string currentOrder, int currentTopN, string columns, int currentOffset, int currentPageSize, ref int totalRecords)
 {
     return(ContactListInfoProvider.GetContactList(MembershipContext.AuthenticatedUser.UserID, completeWhere, currentOrder, currentTopN, "UserName, UserNickname, FullName, ContactListContactUserID", currentOffset, currentPageSize, ref totalRecords));
 }