Ejemplo n.º 1
0
        private void BindUserDropdown()
        {
            CourseModule course = new CourseModule();
            //SiteUser users = new SiteUser();
            List <SiteUser> users    = SiteUser.LoadInstructors(SiteId);
            List <Role>     roles    = Role.GetbySite(SiteId).Where(t => t.IsC21Role).ToList();
            List <Audience> audience = course.LoadAudienceFromReader();

            cblAudience.DataSource = audience;
            cblAudience.DataBind();

            DataTable dt = MasterDatas.SelectMasterDataForCourse(1);

            ddlLeadInstructor.DataSource = dt;
            ddlLeadInstructor.DataBind();
            ddlLeadInstructor.Items.Insert(0, Resources.Resource.DropDownPleaseSelect);

            DataTable dtCourLength = MasterDatas.SelectMasterDataForCourse(2);

            ddlCourseLength.DataSource = dtCourLength;
            ddlCourseLength.DataBind();
            ddlCourseLength.Items.Insert(0, Resources.Resource.DropDownPleaseSelect);

            DataTable dturlName = MasterDatas.SelectMasterDataForCourse(3);

            ddlUrlName.DataSource = dturlName;
            ddlUrlName.DataBind();
            ddlUrlName.Items.Insert(0, Resources.Resource.DropDownPleaseSelect);

            cblFilterCategory.DataSource = roles;
            cblFilterCategory.DataBind();

            ddlFilterforGridSearch.DataSource = roles;
            ddlFilterforGridSearch.DataBind();
            ddlFilterforGridSearch.Items.Insert(0, Resources.Resource.DropDownAllRoles);
        }