예제 #1
0
        private void showTbType()
        {
            TBTypeService tbService = new TBTypeService();
            ArrayList     list      = tbService.GetTBTypeList();

            Repeater_TBType.DataSource = list;
            Repeater_TBType.DataBind();
        }
예제 #2
0
        private void showTypeData()
        {
            TBTypeService tbService = new TBTypeService();
            ArrayList     list      = tbService.GetTBTypeList();

            DropDownList1.DataSource     = list;
            DropDownList1.DataTextField  = "TypeIntro";
            DropDownList1.DataValueField = "Id";
            DropDownList1.DataBind();
        }
        private void fillInfoType()
        {
            TBTypeService tbService = new TBTypeService();
            ArrayList     list      = tbService.GetTBTypeList();
            TBType        temp      = new TBType();

            temp.Id        = 0;
            temp.TypeIntro = "全部信息";
            list.Insert(0, temp);
            DropDownList_Type.DataSource     = list;
            DropDownList_Type.DataTextField  = "TypeIntro";
            DropDownList_Type.DataValueField = "Id";
            DropDownList_Type.DataBind();
        }