コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     LoadParameters();
     manager = new SurveyManager(surveyGuid);
     surveyPageGuid = manager.GetSurveyFirstSurveyPageGuid(surveyGuid);
     survey = new Survey(surveyGuid);
     PopulateLabels();
 }
コード例 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            SecurityHelper.DisableBrowserCache();

            LoadSettings();

            if (!UserHasPermissionToComplete())
            {
                SiteUtils.RedirectToAccessDeniedPage();
            }

            if ((survey.SurveyGuid == Guid.Empty)||(survey.SiteGuid != siteSettings.SiteGuid))
            {
                WebUtils.SetupRedirect(this, SiteRoot + "/Default.aspx");
                return;
            }

            PopulateLabels();

            manager = new SurveyManager(surveyGuid);
            previousSurveyPageGuid = manager.GetPreviousSurveyPageGuid(surveyPageGuid);
            nextSurveyPageGuid = manager.GetNextSurveyPageGuid(surveyPageGuid);

            SetNavigationButtons();

            RenderQuestions();
        }