protected void Page_Load(object sender, EventArgs e) { var gradeList = new List<string>(); var subjectList = new List<string>(); SessionObject = (SessionObject)Session["SessionObject"]; _itemBankTbl = ItemBankMasterList.GetItemBanksForUser(SessionObject.LoggedInUser, ThinkgatePermission.PermissionLevelValues.ItemBankEdit, "Search"); if (LoadRubric() == false) return; _standardCourseList = CourseMasterList.GetStandardCoursesForUser(SessionObject.LoggedInUser); _gradeList = _standardCourseList.GetGradeList(); _subjectList = _standardCourseList.FilterByGrade(_rubric.Grade).GetSubjectList(); gradeList.Add(_rubric.Grade); subjectList.Add(_rubric.Subject); _courseList = _standardCourseList.FilterByGradesAndSubjects(gradeList, subjectList); BindPageControls(); /* Preview consists of Directions section + Content */ ContentEditor_Rubric_Preview_Directions.InnerHtml = _rubric.Directions; ContentEditor_Rubric_Preview_Contents.InnerHtml = _rubric.Content; }
protected void Page_Load(object sender, EventArgs e) { SessionObject = (SessionObject)Session["SessionObject"]; _itemBankTbl = ItemBankMasterList.GetItemBanksForUser(SessionObject.LoggedInUser, ThinkgatePermission.PermissionLevelValues.ItemBankEdit, "Search"); LoadItemImage(); _standardCourseList = CourseMasterList.GetStandardCoursesForUser(SessionObject.LoggedInUser); _gradeList = _standardCourseList.GetGradeList(); _subjectList = _standardCourseList.FilterByGrade(_selectedAddendum.Addendum_Grade).GetSubjectList(); var gradeList = new List<string>(); var subjectList = new List<string>(); gradeList.Add(_selectedAddendum.Addendum_Grade); subjectList.Add(_selectedAddendum.Addendum_Subject); _courseList = _standardCourseList.FilterByGradesAndSubjects(gradeList, subjectList); BindPageControls(); }
protected void Page_Load(object sender, EventArgs e) { LoadItemImage(); if (hdnFlagDeleteConfirmation.Value != "") { RadToolBarItem itemToDisable = mainToolBar.FindItemByValue("DeleteItemImage"); itemToDisable.Enabled = false; } _standardCourseList = CourseMasterList.GetStandardCoursesForUser(SessionObject.LoggedInUser); _gradeList = _standardCourseList.GetGradeList(); _subjectList = _standardCourseList.FilterByGrade(SelectedImage.Grade).GetSubjectList(); var gradeList = new List<string>(); var subjectList = new List<string>(); gradeList.Add(SelectedImage.Grade); subjectList.Add(SelectedImage.Subject); _courseList = _standardCourseList.FilterByGradesAndSubjects(gradeList, subjectList); BindPageControls(); ScriptManager.RegisterStartupScript(this, typeof(string), "appClient", "var gr_preset = '" + SelectedImage.Grade + "';var sb_preset = '" + SelectedImage.Subject + "';var cr_preset = '" + SelectedImage.Course + "';", true); }