Пример #1
0
    protected void TvCorp_Created()
    {
        DataTable dataTable = ConferenceManage.QueryCorpCode();
        TreeNode  treeNode  = new TreeNode();

        treeNode.Text        = "集团公司";
        treeNode.NavigateUrl = "";
        treeNode.Target      = "BoardroomList";
        this.TVCorp.Nodes.Add(treeNode);
        foreach (DataRow dataRow in dataTable.Rows)
        {
            TreeNode treeNode2 = new TreeNode();
            treeNode2.Text        = dataRow["corpName"].ToString();
            treeNode2.NavigateUrl = "SelectRoomList.aspx?code=" + dataRow["corpCode"].ToString();
            treeNode2.Target      = "BoardroomList";
            treeNode.Nodes.Add(treeNode2);
        }
    }