Example #1
0
 private void showTbType()
 {
     TbTypeService typeService = new TbTypeService();
     ArrayList list = new ArrayList();
     list = typeService.GetTbTypeList();
     rptTbType.DataSource = list;
     rptTbType.DataBind();
 }
Example #2
0
 /// <summary>
 /// 下拉列表显示信息类型
 /// </summary>
 public void showType()
 {
     TbTypeService service = new TbTypeService();
     ArrayList list = service.GetTbTypeList();
     TbTypeList.DataSource = list;
     TbTypeList.DataTextField = "TypeIntro";
     TbTypeList.DataValueField = "Id";
     TbTypeList.DataBind();
 }
Example #3
0
        /// <summary>
        /// 下拉列表显示信息类型
        /// </summary>
        public void showType()
        {
            TbTypeService service = new TbTypeService();
            ArrayList list = service.GetTbTypeList();
            TbType tb = new TbType();
            tb.Id = 0;
            tb.TypeIntro = "全部";
            list.Insert(0, tb);

            DropDownList1.DataSource = list;
            DropDownList1.DataTextField = "TypeIntro";
            // infoType.DataTextField = "Id";
            DropDownList1.DataValueField = "Id";
            DropDownList1.DataBind();
        }