public void setExamDetailsForExamityMeeting(string transID, HiddenField isLockDown, HiddenField examPassword, HiddenField examDomain, HiddenField hdnExamSecurity) { try { BECommon objBECommon = new BECommon(); objBECommon.IntTransID = Int64.Parse(AppSecurity.Decrypt(transID)); BCommon bCommon = new BCommon(); bCommon.BGetExamDetailsForExamityMeeting(objBECommon); if (objBECommon.DsResult != null && objBECommon.DsResult.Tables.Count > 0) { var islockDown = (objBECommon.DsResult.Tables[0].Rows[0]["IsLockDown"]); isLockDown.Value = islockDown.ToString(); var isPasswordExists = (objBECommon.DsResult.Tables[0].Rows[0]["ExamPassword"]); examPassword.Value = isPasswordExists.ToString(); examDomain.Value = objBECommon.DsResult.Tables[0].Rows[0]["ExamDomain"].ToString(); var examSecurity = (objBECommon.DsResult.Tables[0].Rows[0]["ExamSecurity"]).ToString(); hdnExamSecurity.Value = examSecurity == "4" ? "L3" : examSecurity; } } catch (Exception) { } }
private void setExamDetailsForExamityMeeting() { try { BECommon objBECommon = new BECommon(); objBECommon.IntTransID = Int64.Parse(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())); BCommon bCommon = new BCommon(); bCommon.BGetExamDetailsForExamityMeeting(objBECommon); if (objBECommon.DsResult != null && objBECommon.DsResult.Tables.Count > 0) { var islockDown = Convert.ToBoolean(objBECommon.DsResult.Tables[0].Rows[0]["IsLockDown"]); hdnIsLockDown.Value = islockDown.ToString(); var isPasswordExists = Convert.ToBoolean(objBECommon.DsResult.Tables[0].Rows[0]["ExamPassword"]); hdnIsPasswordExists.Value = isPasswordExists.ToString(); hdnLmsDomain.Value = objBECommon.DsResult.Tables[0].Rows[0]["ExamDomain"].ToString(); } } catch (Exception) { } }