Example #1
0
        public void BindSecurityQuestions()
        {
            try
            {
                BStudent  objBStudent  = new BStudent();
                BEStudent objBEStudent = new BEStudent();
                objBEStudent.IntUserID = Convert.ToInt32(Session[BaseClass.EnumPageSessions.USERID].ToString());
                objBStudent.BGetRandomQuestion(objBEStudent);
                if (objBEStudent.DtResult.Rows.Count > 0)
                {
                    lblQuestion1.Text = objBEStudent.DtResult.Rows[0]["QText"].ToString();

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