protected void Page_Load(object sender, EventArgs e) { _sessionObject = (Thinkgate.Classes.SessionObject)Page.Session["SessionObject"]; _userID = _sessionObject.LoggedInUser.Page; if(_assessmentInfo == null) LoadAssessmentInfo(); lblAuthor.Text = _assessmentInfo.Author; lblCreated.Text = _assessmentInfo.LastEdited.ToShortDateString(); SetElementVisibility(); if(!IsPostBack) { BuildContentTypes(); BuildNumForms(); BuildInclFieldTest(); BuildNumDistractors(); BuildPerformanceLevels(); BuildPrintColumns(); BuildPrintShortAnswer(); BuildOnlineContentFormat(); tbxSource.Text = _assessmentInfo.Source; } }
protected void Page_Init(object sender, EventArgs e) { SessionObject = (SessionObject)Page.Session["SessionObject"]; subject = SessionObject.AssessmentBuildParms.ContainsKey("Subject") ? SessionObject.AssessmentBuildParms["Subject"] : ""; courseID = SessionObject.AssessmentBuildParms.ContainsKey("Course") ? DataIntegrity.ConvertToInt(SessionObject.AssessmentBuildParms["Course"]) : 0; Base.Classes.Course assessmentCourse = CourseMasterList.GetCurrCourseById(courseID); courseName = assessmentCourse != null ? assessmentCourse.CourseName : ""; grade = SessionObject.AssessmentBuildParms.ContainsKey("Grade") ? SessionObject.AssessmentBuildParms["Grade"] : ""; type = SessionObject.AssessmentBuildParms.ContainsKey("Type") ? SessionObject.AssessmentBuildParms["Type"] : ""; term = SessionObject.AssessmentBuildParms.ContainsKey("Term") ? DataIntegrity.ConvertToInt(SessionObject.AssessmentBuildParms["Term"]) : 0; description = SessionObject.AssessmentBuildParms.ContainsKey("Description") ? SessionObject.AssessmentBuildParms["Description"] : ""; currUserID = SessionObject.LoggedInUser != null ? (SessionObject.LoggedInUser.Page > 0 ? SessionObject.LoggedInUser.Page : AppSettings.Demo_TeacherID) : AppSettings.Demo_TeacherID; testCategory = SessionObject.AssessmentBuildParms.ContainsKey("TestCategory") ? SessionObject.AssessmentBuildParms["TestCategory"] : ""; bool hasPermission = SessionObject.LoggedInUser.HasPermission(Permission.Access_SecureTesting); Dictionary<string, bool> dictionaryItem; dictionaryItem = Base.Classes.TestTypes.TypeWithSecureFlag(testCategory); bool isSecuredFlag = dictionaryItem != null && dictionaryItem.Where(x => Boolean.Parse(x.Value.ToString())).Select(y => y.Key).ToList().Distinct().Any(); hiddenAccessSecureTesting.Value = hasPermission.ToString(); hiddenIsSecuredFlag.Value = isSecuredFlag.ToString(); hiddenSecureType.Value = SecureType.ToString(); rigorLevels = SessionObject.Standards_RigorLevels_ItemCounts; }
protected void Page_Load(object sender, EventArgs e) { if (Session["SessionObject"] == null) { Services.Service2.KillSession(); } DistrictParms dParms = DistrictParms.LoadDistrictParms(); pwdChgCtrl_hdnPasswordFormatReg.Value = dParms.PasswordFormatReg; pwdChgCtrl_hdnPasswordConfReq.Value = dParms.PasswordConfigurationRequired; pwdChgCtrl_hdnValidationMsg.Value = dParms.PasswordValidationMsg; _sessionObject = (SessionObject)Session["SessionObject"]; if (Request.Form["__EVENTTARGET"] == "pwdChgCtrl_SubmitBtn") { UpdatePassword(this, new EventArgs()); } if ((_sessionObject.LoggedInUser.IsSuperAdmin) || (dParms.PasswordConfigurationRequired == "No")) { pwdChgCtrl_hdnPasswordConfReq.Value = "No"; h1MinimumPassword.Visible = false; } else { displayMsgChild.InnerHtml = MinimumPasswordRequirementHelper.GetMinumumPasswordRequirementMsg(); } }
protected void Page_Load(object sender, EventArgs e) { sessionObject = (SessionObject)Session["SessionObject"]; if (Request.QueryString["xID"] == null || !Int32.TryParse(Request.QueryString["xID"], out _assessmentID)) { sessionObject.RedirectMessage = "No assessment ID provided in URL."; Response.Redirect("~/PortalSelection.aspx", true); } else if (Request.QueryString["yID"] == null || !Int32.TryParse(Request.QueryString["yID"], out _formID)) { sessionObject.RedirectMessage = "No form ID provided in URL."; Response.Redirect("~/PortalSelection.aspx", true); } else if (Request.QueryString["doctype"] == null || String.IsNullOrEmpty((_doctype = Request.QueryString["doctype"]))) { sessionObject.RedirectMessage = "No document type provided in URL."; Response.Redirect("~/PortalSelection.aspx", true); } else { if(!IsPostBack) { } } }
protected void Page_Load(object sender, EventArgs e) { session = (SessionObject)Session["SessionObject"]; if (Request.QueryString["xID"] == null) { Response.Redirect("~/PortalSelection.aspx", true); } else { _WorkSheetIDEncrypted = Request.QueryString["xID"]; WorksheetID = Cryptography.GetDecryptedID(session.LoggedInUser.CipherKey); } if (Request.QueryString["classid"] != null) { ClassID = Convert.ToInt32(Request.QueryString["classid"].ToString().Trim()); } try { if (Session["CheckForWorksheetCopied"].ToString() == "copied") { ScriptManager.RegisterStartupScript(this.Page, typeof(string), "reloadClassTile", "window.opener.location.href = window.opener.location.href;", true); Session["CheckForWorksheetCopied"] = null; } } catch { } }
protected void Page_Load(object sender, EventArgs e) { session = (SessionObject)Session["SessionObject"]; userid = session.LoggedInUser.UserId; if (Request.QueryString["StandardID"] != null && Request.QueryString["StudentID"] != null && Request.QueryString["WorksheetID"] != null) { StandardId = Convert.ToInt32(Request.QueryString["StandardID"]); StudentId = Convert.ToInt32(Request.QueryString["StudentID"]); WorksheetId = Convert.ToInt32(Request.QueryString["WorksheetID"]); } if (!IsPostBack) { radGridHistory.Visible = true; radGridComments.Visible = true; RadScriptManager scriptManager = (RadScriptManager)ScriptManager.GetCurrent(this.Page); DataSet ds = CompetencyWorkSheet.GetCompetencyWorksheetSingleStudentStandard(StandardId, StudentId, WorksheetId); if (ds != null && ds.Tables[0].Rows.Count > 0) { lblStudentName.Text = ds.Tables[0].Rows[0]["StudentName"].ToString(); lblStandardDesc.Text = ds.Tables[0].Rows[0]["StandardDesc"].ToString(); StandardName = ds.Tables[0].Rows[0]["StandardName"].ToString(); lnkStandard.Text = StandardName; HyperLink link = new HyperLink(); ID_Encrypted = Encryption.EncryptInt(StandardId); link.NavigateUrl = "~/Record/StandardsPage.aspx?xID=" + ID_Encrypted; lnkStandard.Attributes.Add("onclick", "window.open('" + link.ResolveClientUrl(link.NavigateUrl) + "');"); lnkStandard.Attributes.Add("style", "cursor:pointer; text-decoration: underline; color: #034AF3"); BindPerformanceGrid(); BindCommentGrid(); } } }
protected void Page_Load(object sender, EventArgs e) { sessionObject = (SessionObject) Session["SessionObject"]; GetClientID(); if (!IsPostBack) { if (Request.QueryString["year"] != null) AddNewImprovementPlan(); else { GetImpPlanIDfromQueryString(); } BindImprovementPlanDetails(); } else { if (!string.IsNullOrEmpty(hiddenImprovementPlanID.Value)) { ImprovementID = Convert.ToInt32(hiddenImprovementPlanID.Value); ActionType = !string.IsNullOrEmpty(hiddenImpPlanAction.Value) ? (ActionType) Enum.Parse(typeof (ActionType), hiddenImpPlanAction.Value) : ActionType.Edit; } else { ScriptManager.RegisterClientScriptBlock(Page, this.GetType(), "Alert", "alert('Error during postback. Improvement Plan not found ')", true); } } if (IsPDF) imgLogo.Visible = false; SetUpReadOnlyMode(); }
protected void Page_Load(object sender, EventArgs e) { sessionObject = (SessionObject)Session["SessionObject"]; _userID = sessionObject.LoggedInUser.Page; if (Request.QueryString["xID"] == null || !Int32.TryParse(Request.QueryString["xID"], out _assessmentID)) { sessionObject.RedirectMessage = "No assessment ID provided in URL."; Response.Redirect("~/PortalSelection.aspx", true); } else if (_level != "assessment" && (Request.QueryString["yID"] == null || !Int32.TryParse(Request.QueryString["yID"], out _classID))) { sessionObject.RedirectMessage = "No class ID provided in URL."; Response.Redirect("~/PortalSelection.aspx", true); } else if (_level != "assessment" && (Request.QueryString["isGroup"] == null || !Boolean.TryParse(Request.QueryString["isGroup"], out _isGroup))) { sessionObject.RedirectMessage = "Unable to get Group Status."; Response.Redirect("~/PortalSelection.aspx", true); } else { inpxID.Value = Request.QueryString["xID"].ToString(); if(!IsPostBack) { LoadTableData(); lblNumRecs.Text = "Records Found: " + _dtScans.Rows.Count.ToString(); // TFS #3549 : Show 'Upload Results' button, if only, assessment is proofed. btnUpload.Visible = IsAssessmentProofed(); } } }
protected void Page_Load(object sender, EventArgs e) { //btnSave.Enabled = false; sb = txtComments.Text; session = (SessionObject)Session["SessionObject"]; if (Request.QueryString["CommentID"] != null) { CompetencyCommentId = Convert.ToInt32(Request.QueryString["CommentID"]); DataSet dscomment = CompetencyWorkSheet.GetCommentDetails(CompetencyCommentId); if (dscomment != null && dscomment.Tables[0].Rows.Count > 0) { if (txtComments.Text == "") { txtComments.Text = dscomment.Tables[0].Rows[0]["Comment"].ToString().Trim(); //btnSave.Enabled = true; } } } else { if (Request.QueryString["StandardID"] != null && Request.QueryString["StudentID"] != null && Request.QueryString["WorksheetID"] != null) { StandardId = Convert.ToInt32(Request.QueryString["StandardID"]); StudentId = Convert.ToInt32(Request.QueryString["StudentID"]); WorksheetId = Convert.ToInt32(Request.QueryString["WorksheetID"]); } } }
protected new void Page_Init(object sender, EventArgs e) { if (_sessionObject == null) { _sessionObject = (SessionObject)Session["SessionObject"]; } #region Criterion: Cluster DataTable dtCluster = Thinkgate.Base.Classes.SchoolMasterList.GetClustersForUser(_sessionObject.LoggedInUser).ToDataTable("Cluster"); cmbRegion.DataSource = dtCluster; cmbRegion.DataTextField = "Cluster"; cmbRegion.DataValueField = "Cluster"; cmbRegion.DataBind(); if (dtCluster.Rows.Count == 1) { string Region = dtCluster.Rows[0]["Cluster"].ToString(); cmbRegion.DefaultTexts = new List<string> { Region }; cmbRegion.ReadOnly = true; } #endregion #region Pre Selected Loggedin User Name //RadComboBoxItem item = new RadComboBoxItem(); //item.Text = _sessionObject.LoggedInUser.UserFullName.ToString(); //item.Value = _sessionObject.LoggedInUser.UserFullName.ToString(); //cmbUserName.ComboBox.Items.Add(item); //cmbUserName.DefaultTexts = new List<string> { item.Text }; //cmbUserName.ReadOnly = true; #endregion }
protected void Page_Init(object sender, EventArgs e) { if (Session["SessionObject"] == null) { Services.Service2.KillSession(); } sessionObject = (SessionObject)Session["SessionObject"]; }
protected void Page_Load(object sender, EventArgs e) { SessionObject = (SessionObject) Session["SessionObject"]; if (!IsPostBack) { LoadAddedendumText(); } }
/// <summary> /// Reurn true if the currently logged in user has the passed permission. /// </summary> /// <param name="permission"></param> /// <returns></returns> protected Boolean UserHasPermission(Thinkgate.Base.Enums.Permission permission) { if (SessionObject == null) { SessionObject = (SessionObject)Session["SessionObject"]; } return SessionObject.LoggedInUser.HasPermission(permission); }
protected void Page_Load(object sender, EventArgs e) { sessionObject = (SessionObject)Session["SessionObject"]; if (Request.QueryString["xID"] == null) { SessionObject.RedirectMessage = "No item type provided in URL."; Response.Redirect("~/PortalSelection.aspx", true); } else { itemType = (ItemTypes)Enum.Parse(typeof(ItemTypes), (String)Request.QueryString["xID"], true); switch (itemType) { case ItemTypes.Addendum: inpItemType.Value = itemType.ToString(); break; case ItemTypes.Image: inpItemType.Value = itemType.ToString(); break; case ItemTypes.Item: inpItemType.Value = itemType.ToString(); break; case ItemTypes.Rubric: inpItemType.Value = itemType.ToString(); break; case ItemTypes.RubricAnalytical: inpItemType.Value = itemType.ToString(); this.Title = "Analytical Rubric Identification"; break; case ItemTypes.RubricHolistic: inpItemType.Value = itemType.ToString(); this.Title = "Custom Holistic Rubric Identification"; break; default: this.Title = itemType.ToString() + " Identification"; break; } if (!IsPostBack) { SetControlVisibility(); LoadGrades(); LoadCourses(); LoadItemBanks(); LoadQuestionTypes(); LoadAddendumTypes(); LoadPassThruParms(); } ScriptManager.RegisterStartupScript(this, typeof(string), "appClient", "var appClient = '" + AppClient() + "';", true); } }
/// <summary> /// This event handler catches the event that fires when this Dialog is loaded. /// </summary> /// <param name="sender">The object that fired this event</param> /// <param name="e">EventArgs passed to the eventhandler</param> protected void Page_Load(object sender, EventArgs e) { _environmentParametersViewModel = new EnvironmentParametersFactory(AppSettings.ConnectionStringName).GetEnvironmentParameters(); _sessionObject = (SessionObject)Session["SessionObject"]; if (!IsPostBack) { txtName.Focus(); } }
protected new void Page_Init(object sender, EventArgs e) { base.Page_Init(sender, e); sessionObject = (SessionObject)Session["SessionObject"]; ImpPlanType = (ImprovementPlanType)Tile.TileParms.GetParm("improvementPlanType"); if (Tile.TileParms.Parms.ContainsKey("schoolID")) { SchoolID = (int)Tile.TileParms.GetParm("schoolID"); } }
protected void Page_Load(object sender, EventArgs e) { session = (SessionObject)Session["SessionObject"]; _curriculumCourseList = Thinkgate.Base.Classes.CourseMasterList.GetCurrCoursesForUser(session.LoggedInUser); _teacherID = DataIntegrity.ConvertToInt(session.LoggedInUser.Page); hdnNodeId.Value = QueryHelper.GetString("id", "-1"); hdnWorksheetId.Value = QueryHelper.GetString("WorksheetID", ""); hdnType.Value = Convert.ToString(QueryHelper.GetString("type", "")); if (!IsPostBack) { ///Only for Teacher set default value of grade ,subject, course. //subject = session.AssessmentBuildParms.ContainsKey("Subject") ? session.AssessmentBuildParms["Subject"] : string.Empty; //course = session.AssessmentBuildParms.ContainsKey("Course") ? DataIntegrity.ConvertToInt(session.AssessmentBuildParms["Course"]) : 0; //grade = session.AssessmentBuildParms.ContainsKey("Grade") ? session.AssessmentBuildParms["Grade"] : string.Empty; //BindClassTypes(); competencyRubricsPageList = CompetencyWorkSheet.CompetencyRubricsPage(); if (Request.QueryString["type"] != null) { if (type == "Edit") { btnContinue.Visible = false; btnSave.Visible = true; btnCancel.OnClientClick = "CloseDialog('" + type.ToLower() + "');"; cmbRubric.Enabled = false; gradeDropdown.Enabled = false; subjectDropdown.Enabled = false; courseDropdown.Enabled = false; } else if (type.ToLower() == "copy" || type.ToLower() == "'update'") { btnCancel.OnClientClick = "CloseDialog('" + type.ToLower().Replace("'", "") + "');"; btnContinue.Text = " Save "; btnSave.Visible = false; } BindCompetencyWorkSheet(worksheetId); } else { txtName.Text = QueryHelper.GetString("name", ""); txtDescription.Text = QueryHelper.GetString("desc", ""); subject = session.clickedClass.Subject.DisplayText != "" ? session.clickedClass.Subject.DisplayText : string.Empty; courseName = session.clickedClass.Course.CourseName != "" ? session.clickedClass.Course.CourseName : string.Empty; grade = session.clickedClass.Grade.DisplayText != "" ? session.clickedClass.Grade.DisplayText : string.Empty; LoadGradeButtonFilter(); LoadSubjectsButtonFilter(); LoadCoursesButtonFilter(); } BindRubricsItems(grade, subject, Convert.ToString(course)); } }
protected new void Page_Init(object sender, EventArgs e) { base.Page_Init(sender, e); _sessionObject = (SessionObject)Page.Session["SessionObject"]; _currUserID = _sessionObject.LoggedInUser.Page; #if DEBUG clientFolder = ""; #else clientFolder = AppSettings.AppVirtualPath; #endif }
protected void Page_Load(object sender, EventArgs e) { SessionObject = (SessionObject) Session["SessionObject"]; if (!IsPostBack) { SetControls(); } else { HideExpandedDivs(); } }
protected void Page_Load(object sender, EventArgs e) { if (Tile == null) return; _sessionObject = (SessionObject)Session["SessionObject"]; _userID = _sessionObject.LoggedInUser.Page; if (!IsPostBack) { LoadTableData(); scansearch_hiddenAssessmentID.Value = _assessmentID.ToString(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { SessObj = (SessionObject)Session["SessionObject"]; if (SessObj == null || SessObj.LoggedInUser == null) { Session.Abandon(); return; } frmImpersonate.Visible = true; } }
protected void SetNewAssessmentTitleValue() { _sessionObject = (SessionObject)Page.Session["SessionObject"]; string grade = _sessionObject.AssessmentBuildParms["Grade"]; Grade gradeOrdinal = new Grade(grade); string subject = _sessionObject.AssessmentBuildParms["Subject"]; int courseID = DataIntegrity.ConvertToInt(_sessionObject.AssessmentBuildParms["Course"]); Base.Classes.Course assessmentCourse = CourseMasterList.GetCurrCourseById(courseID); string courseName = assessmentCourse != null ? assessmentCourse.CourseName : ""; string type = _sessionObject.AssessmentBuildParms["Type"]; string term = _sessionObject.AssessmentBuildParms["Term"]; courseName = courseName == subject ? "" : courseName; newAssessmentTitle.Value = "Term " + term + " " + type + " - " + gradeOrdinal.GetFriendlyName() + " Grade " + subject + " " + courseName; }
protected void Page_Init(object sender, EventArgs e) { SessionObject = (Thinkgate.Classes.SessionObject)Page.Session["SessionObject"]; teacherID = DataIntegrity.ConvertToInt(SessionObject.TeacherTileParms.GetParm("userID")); classID = DataIntegrity.ConvertToInt(SessionObject.TeacherTileParms.GetParm("levelID")); classObj = (Class)SessionObject.TeacherTileParms.GetParm("class"); classSubject = SessionObject.AssessmentBuildParms.ContainsKey("Subject") ? SessionObject.AssessmentBuildParms["Subject"] : (classObj != null ? classObj.Subject.DisplayText : ""); classCourse = SessionObject.AssessmentBuildParms.ContainsKey("Course") ? SessionObject.AssessmentBuildParms["Course"] : (classObj != null ? classObj.Course.CourseName : ""); classGrade = SessionObject.AssessmentBuildParms.ContainsKey("Grade") ? SessionObject.AssessmentBuildParms["Grade"] : (classObj != null ? classObj.Grade.DisplayText : ""); classType = SessionObject.AssessmentBuildParms.ContainsKey("Type") ? SessionObject.AssessmentBuildParms["Type"] : ""; classTerm = SessionObject.AssessmentBuildParms.ContainsKey("Term") ? DataIntegrity.ConvertToInt(SessionObject.AssessmentBuildParms["Term"]) : 0; classContent = SessionObject.AssessmentBuildParms.ContainsKey("Content") ? SessionObject.AssessmentBuildParms["Content"] : ""; classDescription = SessionObject.AssessmentBuildParms.ContainsKey("Description") ? SessionObject.AssessmentBuildParms["Description"] : ""; rigorLevels = SessionObject.Standards_RigorLevels_ItemCounts; }
protected void Page_Load(object sender, EventArgs e) { session = (SessionObject)Session["SessionObject"]; userid = session.LoggedInUser.Page; studentCredentialID = Request.QueryString["studCrdId"] != null ? Convert.ToInt32(Request.QueryString["studCrdId"]) : 0; studentID = Request.QueryString["studId"] != null ? Convert.ToInt32(Request.QueryString["studId"]) : 0; credentialID = Request.QueryString["crdId"] != null ? Convert.ToInt32(Request.QueryString["crdId"]) : 0; hashKey = studentID.ToString() + "_" + credentialID.ToString(); if (!IsPostBack) { LoadAndBindStudentCredentialsComment(); } }
protected void Page_Load(object sender, EventArgs e) { if (Session["SessionObject"] == null || User == null) { Services.Service2.KillSession(); } _sessionObj = (SessionObject)Session["SessionObject"]; _dParms = DistrictParms.LoadDistrictParms(); if (_sessionObj.LoggedInUser.IsSuperAdmin || _dParms.PasswordConfigurationRequired == "No") h1MinimumPassword.Visible = false; else if (_dParms.PasswordConfigurationRequired == "Yes") displayMsgChild.InnerHtml = MinimumPasswordRequirementHelper.GetMinumumPasswordRequirementMsg(); _userName = _sessionObj.LoggedInUser.UserName; }
protected void CheckSelectedStandards() { _sessionObject = (SessionObject)Page.Session["SessionObject"]; rigorLevels = _sessionObject.Standards_RigorLevels_ItemCounts; blankItemCounts.Value = rigorLevels.BlankItemCounts.Count.ToString(); List<int> standardIds = rigorLevels.StandardItemNames.ToList().Select(st => st.Key).ToList(); DataSet addendumsDataSet = Base.Classes.Addendum.GetAddendumsByStandards(standardIds); if (addendumsDataSet != null && addendumsDataSet.Tables.Count > 0) { CountAddendums = addendumsDataSet.Tables[0].Rows.Count; btnAddendumType.Attributes["CountAddendums"] = CountAddendums.ToString(); } }
protected void Page_Load(object sender, EventArgs e) { _sessionObject = (SessionObject)Session["SessionObject"]; _userId = _sessionObject.LoggedInUser.Page; ctlTags.EnumSelectionType = SelectionType.Assessment.ToString(); ctlTags.SaveCancelButtonClick += ctlTags_SaveCancelButtonClick; ctlTags.EducationalSubjectDisabled = true; ctlTags.GradeDisabled = true; ctlTags.RequiresVisible = false; ctlTags.TeachesVisible = false; ctlTags.EndUserDisabled = true; ctlTags.EducationalUseDisabled = true; ctlTags.AssessedDisabled = true; if (Request.QueryString["xID"] == null) { _sessionObject.RedirectMessage = "No assessment ID provided in URL."; Response.Redirect("~/PortalSelection.aspx", true); } else { _assessmentId = Cryptography.GetDecryptedID(_sessionObject.LoggedInUser.CipherKey); var assessment = Base.Classes.Assessment.GetAssessmentByID(_assessmentId); if (!IsPostBack) { _dt = Base.Classes.Assessment.LoadLrmiTagsForAssessment(_assessmentId); if (_dt != null && _dt.Rows.Count > 0) { LoadTagsForAssessment(_dt); } else { ctlTags.TagCriteriaSelectionParameters.Creator = assessment.CreatedByName; ctlTags.TagCriteriaSelectionParameters.GradeLevel.Add(assessment.Grade); ctlTags.TagCriteriaSelectionParameters.EducationalSubject.Add(assessment.Subject); ctlTags.TagCriteriaSelectionParameters.EndUser.Add(13); ctlTags.TagCriteriaSelectionParameters.EducationalUse.Add(50); ctlTags.TagCriteriaSelectionParameters.LearningResourceType.Add(71); if (ctlTags.TagCriteriaSelectionParameters.Creator.IsNullOrWhiteSpace()) ctlTags.TagCriteriaSelectionParameters.Creator = (_sessionObject.LoggedInUser).UserName; } } } }
protected void Page_Init(object sender, EventArgs e) { SessionObject = (SessionObject)Page.Session["SessionObject"]; subject = SessionObject.AssessmentBuildParms.ContainsKey("Subject") ? SessionObject.AssessmentBuildParms["Subject"] : ""; courseID = SessionObject.AssessmentBuildParms.ContainsKey("Course") ? DataIntegrity.ConvertToInt(SessionObject.AssessmentBuildParms["Course"]) : 0; Base.Classes.Course assessmentCourse = CourseMasterList.GetCurrCourseById(courseID); courseName = assessmentCourse != null ? assessmentCourse.CourseName : ""; grade = SessionObject.AssessmentBuildParms.ContainsKey("Grade") ? SessionObject.AssessmentBuildParms["Grade"] : ""; type = SessionObject.AssessmentBuildParms.ContainsKey("Type") ? SessionObject.AssessmentBuildParms["Type"] : ""; term = SessionObject.AssessmentBuildParms.ContainsKey("Term") ? DataIntegrity.ConvertToInt(SessionObject.AssessmentBuildParms["Term"]) : 0; description = SessionObject.AssessmentBuildParms.ContainsKey("Description") ? SessionObject.AssessmentBuildParms["Description"] : ""; currUserID = SessionObject.LoggedInUser != null ? (SessionObject.LoggedInUser.Page > 0 ? SessionObject.LoggedInUser.Page : AppSettings.Demo_TeacherID) : AppSettings.Demo_TeacherID; testCategory = SessionObject.AssessmentBuildParms.ContainsKey("TestCategory") ? SessionObject.AssessmentBuildParms["TestCategory"] : "Classroom"; rigorLevels = SessionObject.Standards_RigorLevels_ItemCounts; //Selected Item Banks table selectedItemBanksTable = new dtItemBank(); }
protected void Page_Load(object sender, EventArgs e) { sessionObject = (SessionObject)Session["SessionObject"]; Int32 assessmentID; if (Request.QueryString["xID"] == null || !Int32.TryParse(Encryption.DecryptString(Request.QueryString["xID"]), out assessmentID)) { sessionObject.RedirectMessage = "No assessment ID provided in URL."; Response.Redirect("~/PortalSelection.aspx", true); } else { AssessmentID = assessmentID; AssessmentName = Request.QueryString["yID"]; if(!IsPostBack) { } } }
protected void Page_Load(object sender, EventArgs e) { sessionObject = (SessionObject)Session["SessionObject"]; if (Request.QueryString["assessmentCategory"] != null) { SetPrintAssessmentsBubbleSheetsOptions(Request.QueryString["assessmentCategory"].ToString()); } Int64 cteID; if (Request.QueryString["cteIDList"] != null) { CteIDList = !CteIDList.Contains(',') ? Request.QueryString["cteIDList"].ToString() + "," : Request.QueryString["cteIDList"].ToString(); } else if (Request.QueryString["xID"] == null || !Int64.TryParse(Request.QueryString["xID"], out cteID)) { sessionObject.RedirectMessage = "No test event ID provided in URL."; Response.Redirect("~/PortalSelection.aspx", true); } else { CteID = cteID; // Get the csv list of student ids passed in the url. if (Request.QueryString["yID"] != null) StudentIdsCsv = Request.QueryString["yID"]; // Disable some selections if no students selected. if (String.IsNullOrEmpty(StudentIdsCsv)) { btnStudentForm.Enabled = false; btnHaloCal.Enabled = false; btnHaloNonCal.Enabled = false; } if (!IsPostBack) { // Print button initially disabled. // btnPrint.Enabled = false; } } }