private static string GetMessageBoradCategories(List <MBCategories> dataSource) { string reult = string.Empty; if (dataSource != null) { foreach (MBCategories i in dataSource) { reult += WebPageControls.ListGroups(i.cetegoriesTitle, i.sum); } return(reult); } else { reult += "数据错误!请尝试重新加载!"; return(reult); } }
/// <summary> /// 获取留言板分类信息 /// </summary> /// <returns></returns> public static string GetMessageBoradCategories() { mbCategories = UserMessageBoard.MBCategories; string reult = string.Empty; if (mbCategories != null) { for (int i = 0; i < mbCategories.Count; i++) { reult += WebPageControls.ListGroups(mbCategories[i].cetegoriesTitle, mbCategories[i].sum); if (i == 4) { return(reult); } } return(reult); } else { return(reult); } }