protected void btnSubmit_Click(object sender, EventArgs e)
        {
            Int64     TransID      = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString()));
            BEStudent objBEStudent = new BEStudent();
            BStudent  objBStudent  = new BStudent();

            objBEStudent.IntTransID = TransID;
            objBEStudent.IntResult  = 2;
            objBEStudent.IntType    = 9;
            objBStudent.BUpdateNonProctorExamStatus(objBEStudent);
            objBStudent.BUpdatePLTime(objBEStudent);

            if (Session["isexamiFACE"] != null && Session["isexamiFACE"].ToString() == "1")
            {
                BECommon objBECommon = new BECommon();
                BCommon  objBCommon  = new BCommon();
                objBECommon.IntTransID = TransID;
                objBCommon.BGetOpenTokAutoProctorStatus(objBECommon);
                if (objBECommon.IntResult == 1)
                {
                    var client  = new RestClient(System.Configuration.ConfigurationManager.AppSettings["ExamityMeetingService_URL"].ToString());
                    var request = new RestRequest(Method.POST);
                    System.Text.StringBuilder sb = new System.Text.StringBuilder();
                    sb.Append("Method=CreateAutoProctorMeeting&");
                    sb.Append("TransID=" + Request.QueryString["TransID"].ToString());
                    sb.Append("&ClientID=" + System.Configuration.ConfigurationManager.AppSettings["ExamityMeeting_ClientID"].ToString());

                    request.AddParameter("application/x-www-form-urlencoded", sb.ToString(), RestSharp.ParameterType.RequestBody);
                    var response = client.Execute(request);
                    Response.Redirect("BeginAutoProctorExam.aspx?TransID=" + Request.QueryString["TransID"].ToString());
                    //Response.Redirect("BeginAutoProctorExam.aspx?TransID=" + Request.QueryString["TransID"].ToString());
                }
                else
                {
                    Response.Redirect("BeginAutoExam.aspx?TransID=" + Request.QueryString["TransID"].ToString());
                }
            }
            else
            {
                Response.Redirect("BeginExam.aspx?TransID=" + Request.QueryString["TransID"].ToString());
            }
        }