日期:2014-05-16 浏览次数:20480 次
IList<Model.ModelObjects.Menu> list = new List<Model.ModelObjects.Menu>();
List<TreeNode> treeNodes = new List<TreeNode>();
if (string.IsNullOrEmpty(id))
{
list = factory.GetMenuBusiness().getFirstLevel();
foreach (var menu in list)
{
TreeNode node = new TreeNode(menu.Id, menu.Title, "closed");
treeNodes.Add(node);
}
}
else
{
list = factory.GetMenuBusiness().getChild(id);
foreach (var menu in list)
{
TreeNode node = new TreeNode(menu.Id, menu.Title, "closed");
treeNodes.Add(node);
}
}
using System;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
public partial class _Default : System.Web.UI.Page
{
&n