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);
        }
        /// <summary>
        /// Get the initial values from query string 
        /// Loads the test question or bank question
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            SessionObject = (SessionObject)Session["SessionObject"];
            _itemBankTbl = ItemBankMasterList.GetItemBanksForUser(SessionObject.LoggedInUser, ThinkgatePermission.PermissionLevelValues.ItemBankEdit, "Search");

            _imagesUrl = ConfigHelper.GetImagesUrl();
            lbl_OTCUrl.Value = AppSettings.OTCUrl + DistrictParms.ClientID.ToString(CultureInfo.CurrentCulture);

            UpdateItem();
            LoadItem();
            _standardCourseList = CourseMasterList.GetStandardCoursesForUser(SessionObject.LoggedInUser);
            _gradeList = _standardCourseList.GetGradeList();
            _subjectList = _standardCourseList.FilterByGrade(UseTq ? _itemTestQuestion.Grade : _itemBankQuestion.Grade).GetSubjectList();

            var gradeList = new List<string>();
            var subjectList = new List<string>();
            gradeList.Add(UseTq ? _itemTestQuestion.Grade : _itemBankQuestion.Grade);
            subjectList.Add(UseTq ? _itemTestQuestion.Subject : _itemBankQuestion.Subject);

            BindPageControls();
            SetItemPageValues();

            ScriptManager.RegisterStartupScript(this, typeof(string), "appClient", "var appClient = '" + AppClient() + "';", true);
            ScriptManager.RegisterStartupScript(this, typeof (string), "debug_message", "function debug_message(message) {}", true);

            rtbBtnLRMI.Visible = DistrictParms.LRMITagging == "true";
        }