示例#1
0
        /// <summary>
        /// 下拉框数据绑定
        /// </summary>
        public void ddlDataBinder()
        {
            List <Sys_Channel> channelList = _channelService.GetAllParent();

            ddlAllParentSystem.DataSource     = channelList;
            ddlAllParentSystem.DataTextField  = "ChannelName";
            ddlAllParentSystem.DataValueField = "ChannelId";
            ddlAllParentSystem.DataBind();
            ddlAllParentSystem.Items.Insert(0, new ListItem("顶级系统", "0"));
        }