Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["CurrentLanguage"] == null)
            {
                Session["CurrentLanguage"] = "English";
                strCurrentLanguage         = Session["CurrentLanguage"].ToString();
            }
            else
            {
                strCurrentLanguage = Session["CurrentLanguage"].ToString();
            }

            //Set global variables based on URL values.
            if (Request.QueryString["QuestionID"] != null)
            {
                strQuestionID = Request.QueryString["QuestionID"].ToString();
            }

            if (Request.QueryString["ResponseID"] != null)
            {
                strResponseID = Request.QueryString["ResponseID"].ToString();
                if (strResponseID.Trim() == "")
                {
                    strResponseID = "0";
                }
                intAssessmentID = DataProxy.GetAssessmentID(Convert.ToInt32(strResponseID));
            }
            lblPageTitle.Text = DataProxy.LoadString("ASSESSMENTQUESTIONSLABEL", strCurrentLanguage);

            lbltest.Text = "QuestionID=" + strQuestionID + "   AssessmentID=" + intAssessmentID.ToString() + "   ResponseID=" + strResponseID;
        }