Esempio n. 1
0
 protected void BindSecurityQuestions()
 {
     try
     {
         BStudent  objBStudent  = new BStudent();
         BEStudent objBEStudent = new BEStudent();
         objBEStudent.IntUserID = Convert.ToInt32(Session[BaseClass.EnumPageSessions.USERID].ToString());
         objBStudent.BGetStudentSecurityQuestions(objBEStudent);
         if (objBEStudent.DtResult.Rows.Count > 0)
         {
             lblQuestion1.Text = "<b>Question #1:   </b>" + objBEStudent.DtResult.Rows[0]["QText"].ToString();
             lblQuestion2.Text = "<b>Question #2:   </b>" + objBEStudent.DtResult.Rows[1]["QText"].ToString();
             lblQuestion3.Text = "<b>Question #3:   </b>" + objBEStudent.DtResult.Rows[2]["QText"].ToString();
         }
         objBStudent  = null;
         objBEStudent = null;
     }
     catch (Exception)
     {
         //  ErrorLog.WriteError(Ex);
     }
 }
        public string BindSecurityNextQuestion(String trId)
        {
            try
            {
                BStudent  objBStudent  = new BStudent();
                BEStudent objBEStudent = new BEStudent();
                objBEStudent.IntUserID = Convert.ToInt32(Session[BaseClass.EnumPageSessions.USERID].ToString());
                objBStudent.BGetStudentSecurityQuestions(objBEStudent);
                if (objBEStudent.DtResult.Rows.Count > 0)
                {
                    lblQuestion1.Text = "<b>Question :   </b>" + objBEStudent.DtResult.Rows[0]["QText"].ToString();

                    hfQid.Value     = objBEStudent.DtResult.Rows[0]["Qid"].ToString();
                    HfTransID.Value = trId;
                }
                objBStudent  = null;
                objBEStudent = null;
            }
            catch (Exception)
            {
                //  ErrorLog.WriteError(Ex);
            }
            return("false");
        }