protected void GetAllRules() { BECommon objBECommon = new BECommon(); BCommon objBCommon = new BCommon(); objBECommon.iID = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())); objBECommon.iTypeID = 1; objBECommon.StrFromPage = "STUDENT"; objBCommon.BGetExamRulesInformation(objBECommon); if (objBECommon.DsResult != null && objBECommon.DsResult.Tables.Count > 0 && objBECommon.DsResult.Tables[0].Rows.Count > 0) { gvStandard.DataSource = objBECommon.DsResult.Tables[0]; gvStandard.DataBind(); } else { gvStandard.DataSource = new string[] { } }; //Additional Rules if (objBECommon.DsResult != null && objBECommon.DsResult.Tables.Count > 0 && objBECommon.DsResult.Tables[1].Rows.Count > 0) { gvAllowed.DataSource = objBECommon.DsResult.Tables[1]; gvAllowed.DataBind(); } else { gvAllowed.DataSource = new string[] { }; gvAllowed.DataBind(); trAllowed.Style.Add("display", "none"); } //Special Instructions if (objBECommon.DsResult != null && objBECommon.DsResult.Tables.Count > 0 && objBECommon.DsResult.Tables[2].Rows.Count > 0) { gvSpecialInstructions_Student.DataSource = objBECommon.DsResult.Tables[2]; gvSpecialInstructions_Student.DataBind(); } else { gvSpecialInstructions_Student.DataSource = new string[] { }; gvSpecialInstructions_Student.DataBind(); trSpecialStudent.Style.Add("display", "none"); } }
protected void GetAllRules(Int64 id) { BECommon objBECommon = new BECommon(); BCommon objBCommon = new BCommon(); objBECommon.StrFromPage = "STUDENT"; objBECommon.iID = id; objBECommon.iTypeID = 1;// sending ExamID objBCommon.BGetExamRulesInformation(objBECommon); if (objBECommon.DsResult != null && objBECommon.DsResult.Tables.Count > 0 && objBECommon.DsResult.Tables[0].Rows.Count > 0) { gvStandard.DataSource = objBECommon.DsResult.Tables[0]; gvStandard.DataBind(); } else { gvStandard.DataSource = new string[] { } }; if (objBECommon.DsResult != null && objBECommon.DsResult.Tables.Count > 0 && objBECommon.DsResult.Tables[1].Rows.Count > 0) { gvAllowed.DataSource = objBECommon.DsResult.Tables[1]; gvAllowed.DataBind(); } else { gvAllowed.DataSource = new string[] { } }; if (objBECommon.DsResult != null && objBECommon.DsResult.Tables.Count > 0 && objBECommon.DsResult.Tables[2].Rows.Count > 0) { gvSpecialInstructions_Student.DataSource = objBECommon.DsResult.Tables[2]; gvSpecialInstructions_Student.DataBind(); trSpecialStudent.Visible = true; } else { gvSpecialInstructions_Student.DataSource = new string[] { }; } }
protected void GetAllRules() { BECommon objBECommon = new BECommon(); BCommon objBCommon = new BCommon(); objBECommon.StrFromPage = "STUDENT"; if (Request.QueryString["TransID"] != null) { objBECommon.iID = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())); objBECommon.iTypeID = 1;// sending TransID } if (Request.QueryString["ExamID"] != null) { try { objBECommon.iID = Convert.ToInt32(AppSecurity.Decrypt(Request.QueryString["ExamID"].ToString())); objBECommon.iTypeID = 2;// sending ExamID } catch (Exception) { objBECommon.iID = Convert.ToInt32(Request.QueryString["ExamID"].ToString()); objBECommon.iTypeID = 2;// sending ExamID } } objBCommon.BGetExamRulesInformation(objBECommon); if (objBECommon.DsResult != null && objBECommon.DsResult.Tables.Count > 0 && objBECommon.DsResult.Tables[0].Rows.Count > 0) { gvStandard.DataSource = objBECommon.DsResult.Tables[0]; gvStandard.DataBind(); } else { gvStandard.DataSource = new string[] { } }; if (objBECommon.DsResult != null && objBECommon.DsResult.Tables.Count > 0 && objBECommon.DsResult.Tables[1].Rows.Count > 0) { gvAllowed.DataSource = objBECommon.DsResult.Tables[1]; gvAllowed.DataBind(); gvAllowed.Visible = true; //trAllowed.Visible = true; } else { gvAllowed.DataSource = new string[] { }; gvAllowed.DataBind(); trAllowed.Style.Add("display", "none"); } if (objBECommon.DsResult != null && objBECommon.DsResult.Tables.Count > 0 && objBECommon.DsResult.Tables[2].Rows.Count > 0) { gvSpecialInstructions_Student.DataSource = objBECommon.DsResult.Tables[2]; gvSpecialInstructions_Student.DataBind(); } else { trSpecialStudent.Style.Add("display", "none"); gvSpecialInstructions_Student.DataSource = new string[] { }; gvSpecialInstructions_Student.DataBind(); } } }