protected void Page_Load(object sender, EventArgs e)
        {
            if (IsQueryStringMissingParameter(X_ID))
            {
                RedirectToPortalSelectionScreen();
            }
            else
            {
                _assessmentID = GetDecryptedEntityId(X_ID);
            }

            ScriptManager.RegisterStartupScript(this, typeof(string), "encryptedUserID", "var FieldTestFormId=" + AssessmentForm.FieldTestFormId + ";" +
                                                                                            " var UpdatedDataAttached=" + (int)ActionResult.GenericStatus.UpdatedDataAttached + ";"
                                                                                            , true);

            ImageWebFolder = (Request.ApplicationPath.Equals("/") ? "" : Request.ApplicationPath) + "/Images/";
            _selectedAssessment = Assessment.GetAssessmentAndQuestionsByID(_assessmentID);
            _selectedAssessment.LoadForms(true);
            if (_selectedAssessment == null)
            {
                return;
                //_selectedAssessment = Base.Classes.Assessment.GetAssessmentAndQuestionsByID(_assessmentID);
                //Cache.Insert(key, _selectedAssessment, null, System.Web.Caching.Cache.NoAbsoluteExpiration, TimeSpan.FromHours(2));
            }

            if (!IsPostBack)
            {
                bool hasPermission = SessionObject.LoggedInUser.HasPermission(Permission.Access_SecureTesting);

                if (_assessmentID != 0)
                {
                    selectedAssessment = Thinkgate.Base.Classes.Assessment.GetAssessmentByID(_assessmentID);
                    dictionaryItem = Base.Classes.TestTypes.TypeWithSecureFlag(selectedAssessment.TestCategory);
                    isSecuredFlag = dictionaryItem.Where(x => Boolean.Parse(x.Value.ToString())).Select(y => y.Key).ToList().Distinct().Any();
                    SecureTitle = hasPermission && isSecuredFlag && SecureType;
                        
                }
             
                BindAssessmentItems(_selectedAssessment.Items);
                BindFormData();
                BindRadtab_Forms();
            }

        }