/// <summary>
 /// decrypt the xID query parameter and use to create a Student Object.  
 /// If no xID parameter, then return with message.
 /// </summary>
 private void LoadStudentObject()
 {
     if (Request.QueryString["xID"] == null)
     {
         SessionObject.RedirectMessage = "No entity ID provided in URL.";
         Response.Redirect("~/PortalSelection.aspx", true);
     }
     else
     {
         var studentID = GetDecryptedEntityId(X_ID);
         _selectedStudent = Base.Classes.Data.StudentDB.GetStudentByID(studentID);
     }
 }
Пример #2
0
        private void LoadStudent()
        {
            if (IsQueryStringMissingParameter(X_ID))
            {
                RedirectToPortalSelectionScreen();
            }
            else
            {
                _studentId = GetDecryptedEntityId(X_ID);
                if (!RecordExistsInCache(Key))
                {
                    return;
                }

                SelectedStudent = (Base.Classes.Student)Base.Classes.Cache.Get(Key);
                SetStudentImage();
                DisplayStudentName();
            }
        }
 /// <summary>
 /// decrypt the xID query parameter and use to create a Student Object.  
 /// If no xID parameter, then return with message.
 /// </summary>
 private void LoadStudentObject()
 {
     if (Request.QueryString["xID"] == null)
     {
         SessionObject.RedirectMessage = "No entity ID provided in URL.";
         Response.Redirect("~/PortalSelection.aspx", true);
     }
     else
     {
         var studentID = GetDecryptedEntityId(X_ID);
         _selectedStudent = Base.Classes.Data.StudentDB.GetStudentByID(studentID);
         CurrentStudentID = _selectedStudent.ID.ToString();  //TODO: need to verify the value of this ID, whether it is correct value for this student ID or not.
     }
 }