private void BindTree(TreeNodeCollection TNC) { IList <BBS_Catalog> _list = BBS_CatalogBLL.GetModelList(""); foreach (BBS_Catalog _m in _list) { TreeNode tn = new TreeNode(); tn.Text = _m.Name; tn.Value = "0"; TNC.Add(tn); BindChildTree(tn.ChildNodes, _m.ID); } }