示例#1
0
    protected void TvClass_Created()
    {
        DataTable dataTable = DocumentAction.FilterDocumentClass(this.FilterField);
        TreeNode  treeNode  = new TreeNode();

        treeNode.Text        = "会议分类";
        treeNode.NavigateUrl = "";
        treeNode.Target      = "TemplateList";
        this.TVClass.Nodes.Add(treeNode);
        foreach (DataRow dataRow in dataTable.Rows)
        {
            TreeNode treeNode2 = new TreeNode();
            treeNode2.Text        = dataRow["ClassName"].ToString();
            treeNode2.NavigateUrl = "TemplateList.aspx?cid=" + dataRow["ClassID"].ToString();
            treeNode2.Target      = "TemplateList";
            treeNode.Nodes.Add(treeNode2);
        }
    }