示例#1
0
        private void LoadKnowledge()
        {
            KnowledgePet          knowledge = new KnowledgePet();
            List <CTKnowledgePet> list      = new List <CTKnowledgePet>();

            list = knowledge.GetKnowledgePetList();
            DropDownList1.DataSource     = list;
            DropDownList1.DataTextField  = "KnowledgeTitle";
            DropDownList1.DataValueField = "KnowledgeID";
            DropDownList1.DataBind();
        }
示例#2
0
        private void LoadKnowledgeList()
        {
            List <CTKnowledgePet> knowledgeList = new List <CTKnowledgePet>();
            KnowledgePet          knowledgePet  = new KnowledgePet();

            knowledgeList = knowledgePet.GetKnowledgePetList();
            ddKnowledgeManageList.DataSource     = knowledgeList;
            ddKnowledgeManageList.DataTextField  = "KnowledgeTitle";
            ddKnowledgeManageList.DataValueField = "KnowledgeID";
            ddKnowledgeManageList.DataBind();
            ddKnowledgeList.DataSource     = knowledgeList;
            ddKnowledgeList.DataTextField  = "KnowledgeTitle";
            ddKnowledgeList.DataValueField = "KnowledgeID";
            ddKnowledgeList.DataBind();
        }