private string GetCateParentIDArrayByID(int group) { string strArrayID = ""; CateNewsBSO cateNewsBSO = new CateNewsBSO(); DataTable table1 = new DataTable(); if (group != -1) { table1 = cateNewsBSO.GetCateGroupRoles(Language.language, group, Session["Admin_UserName"].ToString()); } else { table1 = cateNewsBSO.GetCateRoles(Language.language, Session["Admin_UserName"].ToString()); } if (table1.Rows.Count > 0) { foreach (DataRow subrow in table1.Rows) { strArrayID += subrow["CateNewsID"].ToString() + ","; } } return(strArrayID); }