protected void btnAcYr_Click(object sender, EventArgs e) { try { tblSelect.Style.Add("display", "block"); //divAcademicYr.Style.Add("display", "none"); lblWaitMsg.Visible = true; DivCollegeUploadInfo.Style.Add("display", "block"); divDGStat.Style.Add("display", "block"); GVStat.Visible = true; tblheader.Style.Add("display", "block"); Button3.Style.Add("display", "inline"); string RegCentreName = string.Empty; if (YCMOU.IsRegionalCenterVisible.Equals(true)) { if (((RadioButton)YCMOU.FindControl("ChkSelectedRegionalCenter")).Checked) { RegCentreName = ((DropDownList)YCMOU.FindControl("ddlRegionalCenter")).SelectedItem.Text; lblAcaYear.Text = " for Regional Center " + RegCentreName + " for [Academic Year " + ((DropDownList)YCMOU.FindControl("ddlAcadYear")).SelectedItem.Text + "]"; } else { lblAcaYear.Text = " for All Regional Centers [Academic Year " + ((DropDownList)YCMOU.FindControl("ddlAcadYear")).SelectedItem.Text + "]"; } } else { lblAcaYear.Text = " for [Academic Year " + ((DropDownList)YCMOU.FindControl("ddlAcadYear")).SelectedItem.Text + "]"; } if (user.UserTypeCode == "2") { DivCollegeUploadInfo.Style.Add("display", "none"); divDGStat.Style.Add("display", "block"); lblAcaYear.Text = " " + "for " + InstRep.InstituteName(hidUniID.Value, instIDs) + " for" + " [Academic Year " + ((DropDownList)YCMOU.FindControl("ddlAcadYear")).SelectedItem.Text + "]"; } fillGrid(); } catch (TimeoutException ex) { divWaitMsg.Style.Add("display", "block"); } }
protected void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here clsCache.NoCache(); userob = (clsUser)Session["User"]; userid = userob.User_ID.ToString(); if (!IsPostBack) { HtmlInputHidden[] hid = new HtmlInputHidden[15]; hid[0] = hidInstID; hid[1] = hidUniID; hid[2] = hidElgFormNo; hid[3] = hidpkYear; hid[4] = hidpkStudentID; hid[5] = hidpkFacID; hid[6] = hidpkCrID; hid[7] = hidpkMoLrnID; hid[8] = hidpkPtrnID; hid[9] = hidpkBrnID; hid[10] = hidpkCrPrDetailsID; hid[11] = hidPRN; hid[12] = hidIsBlank; hid[13] = hidSearchType; hid[14] = hidDOB; Common.setHiddenVariables(ref hid); Eligibility.ELGV2_ViewStatus__1 ob = (Eligibility.ELGV2_ViewStatus__1)System.Web.HttpContext.Current.Handler; //WebCtrl.StudentsStatusSearch tempHidden = (WebCtrl.StudentsStatusSearch)ob.FindControl("StudentsStatusSearch1"); ContentPlaceHolder Cntph = (ContentPlaceHolder)Page.PreviousPage.Master.FindControl("ContentPlaceHolder1"); WebCtrl.StudentsStatusSearch tempHidden = (WebCtrl.StudentsStatusSearch)Cntph.FindControl("StudentsStatusSearch1"); //setting hidden variables hidElgFormNo.Value = ((HtmlInputHidden)tempHidden.FindControl("hidElgFormNo")).Value; hidPRN.Value = ((HtmlInputHidden)tempHidden.FindControl("hidPRN")).Value; hidpkStudentID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidpkStudentID")).Value; hidpkYear.Value = ((HtmlInputHidden)tempHidden.FindControl("hidpkYear")).Value; hidpkFacID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidpkFacID")).Value; hidpkCrID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidpkCrID")).Value; hidpkMoLrnID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidpkMoLrnID")).Value; hidpkPtrnID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidpkPtrnID")).Value; hidpkBrnID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidpkBrnID")).Value; hidpkCrPrDetailsID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidpkCrPrDetailsID")).Value; hidIsBlank.Value = ((HtmlInputHidden)tempHidden.FindControl("hidIsBlank")).Value; hidInstID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidInstID")).Value; hidSearchType.Value = ((HtmlInputHidden)tempHidden.FindControl("hidSearchType")).Value; hidDOB.Value = ((HtmlInputHidden)tempHidden.FindControl("hidDOB")).Value; FetchStudentDetails(); if (hidInstID.Value != "" && hidInstID.Value != null) { hidUniID.Value = Classes.clsGetSettings.UniversityID.ToString(); lblPageHead.Text = "View Eligibility Status"; lblSubHeader.Text = " for " + InstRep.InstituteName(hidUniID.Value, hidInstID.Value); } if (IsPostBack) { if (Request.QueryString["Search"] == "Simple") { ElgFormNo = hidElgFormNo.Value; } } } }
protected void Page_Load(object sender, System.EventArgs e) { clsCache.NoCache(); ContentPlaceHolder Cntph = (ContentPlaceHolder)Page.Master.FindControl("ContentPlaceHolder1"); RegStudentAdvancedSearchCtrl = (Eligibility.WebCtrl.StudentAdvanceSeachForConfigureChangeElgUnprocess)Cntph.FindControl("StudentAdvanceSeachForConfigureChangeElgUnprocess1"); hid_fk_AcademicYr_ID.Value = RegStudentAdvancedSearchCtrl.ddlAcademicYear.SelectedValue.ToString(); hidAcademicYrText.Value = RegStudentAdvancedSearchCtrl.ddlAcademicYear.SelectedItem.ToString(); // Put user code to initialize the page here if (!IsPostBack) { ContentPlaceHolder Cntph1 = (ContentPlaceHolder)Page.PreviousPage.Master.FindControl("ContentPlaceHolder1"); searchInstNew temp = (searchInstNew)Cntph1.FindControl("SchInst1"); hidInstID.Value = ((HtmlInputHidden)Cntph1.FindControl("hidInstID")).Value; hidUniID.Value = Classes.clsGetSettings.UniversityID.ToString(); HtmlInputHidden[] hid = new HtmlInputHidden[21]; hid[0] = hidInstID; hid[1] = hidUniID; hid[2] = hidElgFormNo; hid[3] = hidpkStudentID; hid[4] = hidpkYear; hid[5] = hidpkFacID; hid[6] = hidpkCrID; hid[7] = hidpkMoLrnID; hid[8] = hidpkPtrnID; hid[9] = hidpkBrnID; hid[10] = hidpkCrPrDetailsID; hid[11] = hid_fk_AcademicYr_ID; hid[12] = hidAcademicYrText; hid[13] = hidFacName; hid[14] = hidCrName; hid[15] = hidMOLName; hid[16] = hidPattern; hid[17] = hidBrName; hid[18] = hidAcYrName; hid[19] = hidSearchType; hid[20] = hidAppFormNo; Common.setHiddenVariables(ref hid); } if (hidInstID.Value != "" && hidInstID.Value != null) { lblPageHead.Text = "Mark Eligibility to Unprocessed"; lblSubHeader.Text = " for " + InstRep.InstituteName(hidUniID.Value, hidInstID.Value); } if (Request.QueryString["Search"] == "Adv") { if (Request.QueryString["Navigate"] == "back") { RegStudentAdvancedSearchCtrl.QstrNavigate = "back"; RegStudentAdvancedSearchCtrl.StrUrl = "ELGV2_ResolveProvisional__2.aspx?Search=Adv"; RegStudentAdvancedSearchCtrl.GridType = "Reg"; //if (Request.QueryString["AcYear"] != "0") //{ // lblAcademicYear.Text = " [Academic Year " + Request.QueryString["AcYearText"].ToString() + "]"; //+ hidAcademicYrText.Value; // lblAcademicYear.Attributes.Add("style", "display:inline"); //} //else if (Request.QueryString["AcYear"] == "0") //{ // lblAcademicYear.Attributes.Add("style", "display:none"); //} } else { RegStudentAdvancedSearchCtrl.QstrNavigate = null; RegStudentAdvancedSearchCtrl.StrUrl = "ELGV2_ResolveProvisional__2.aspx?Search=Adv"; RegStudentAdvancedSearchCtrl.GridType = "Reg"; } } else if (Request.QueryString["Search"] == "Simple") { if (Request.QueryString["Navigate"] == "back") { RegStudentAdvancedSearchCtrl.QstrNavigate = "back"; RegStudentAdvancedSearchCtrl.StrUrl = "ELGV2_ResolveProvisional__2.aspx?Search=Simple"; RegStudentAdvancedSearchCtrl.GridType = "Reg"; } } //added by Deboshree 16/7/10 if (RegStudentAdvancedSearchCtrl.HidSearchType.Equals("Simple"))// || Request.QueryString["Search"] == "Simple") { RegStudentAdvancedSearchCtrl.StrUrl = "ELGV2_ResolveProvisional__2.aspx?Search=Simple"; hid_fk_AcademicYr_ID.Value = "0"; lblAcademicYear.Attributes.Add("style", "display:none"); } else if (RegStudentAdvancedSearchCtrl.HidSearchType.Equals("Adv"))// || Request.QueryString["Search"] == "Adv") { RegStudentAdvancedSearchCtrl.StrUrl = "ELGV2_ResolveProvisional__2.aspx?Search=Adv"; if (hid_fk_AcademicYr_ID.Value != "0" || hid_fk_AcademicYr_ID.Value != "" || hid_fk_AcademicYr_ID.Value != null) { if (hidAcademicYrText.Value != "--- Select ---") { lblAcademicYear.Text = " for Academic Year " + hidAcademicYrText.Value; //lblAcademicYear.Attributes.Add("style", "display:inline"); } } } RegStudentAdvancedSearchCtrl.GridType = "Reg"; //end add by Deboshree }
protected void Page_Load(object sender, System.EventArgs e) { clsCache.NoCache(); btnSimpleSearch.Attributes.Add("onclick", "return ChkValidation();"); // Ajax.Utility.RegisterTypeForAjax(typeof(Eligibility.AjaxMethods), this.Page); Ajax.Utility.RegisterTypeForAjax(typeof(Student.clsStudent), this.Page); // Ajax.Utility.RegisterTypeForAjax(typeof(Student.clsStudent)); ContentPlaceHolder Cntph = (ContentPlaceHolder)Page.Master.FindControl("ContentPlaceHolder1"); StudentAdvancedSearchCtrl = (Eligibility.WebCtrl.StudentAdvancedSearchforManualProcess)Cntph.FindControl("StudentAdvancedSearchForManualProcess1"); //StudentAdvancedSearchCtrl = (Eligibility.WebCtrl.StudentAdvancedSearchforManualProcess)Page.FindControl("StudentAdvancedSearchForManualProcess1"); hid_fk_AcademicYr_ID.Value = StudentAdvancedSearchCtrl.ddlAcademicYear.SelectedValue.ToString(); hidAcademicYrText.Value = StudentAdvancedSearchCtrl.ddlAcademicYear.SelectedItem.ToString(); if (!IsPostBack) { ContentPlaceHolder Cntph1 = (ContentPlaceHolder)Page.PreviousPage.Master.FindControl("ContentPlaceHolder1"); //ElgConfirm_Inst_Student_Search ob = (ElgConfirm_Inst_Student_Search)Context.Handler; searchInstNew temp = (searchInstNew)Cntph1.FindControl("SchInst1"); hidInstID.Value = ((HtmlInputHidden)Cntph1.FindControl("hidInstID")).Value; hidUniID.Value = Classes.clsGetSettings.UniversityID.ToString(); HtmlInputHidden[] hid = new HtmlInputHidden[29]; hid[0] = hidInstID; hid[1] = hidUniID; hid[2] = hidElgFormNo; hid[3] = hidpkStudentID; hid[4] = hidpkYear; hid[5] = hidpkFacID; hid[6] = hidpkCrID; hid[7] = hidpkMoLrnID; hid[8] = hidpkPtrnID; hid[9] = hidpkBrnID; hid[10] = hidpkCrPrDetailsID; hid[11] = hidElgStatusColl; hid[12] = hidCollElgFlag; hid[13] = hidCollElgFlagReason; hid[14] = hidInv; hid[15] = hidIsBlank; hid[16] = hidrbFilterYesNo; hid[17] = hid_fk_AcademicYr_ID; hid[18] = hidAcademicYr; hid[19] = hidAcademicYrText; hid[20] = hidStateID; hid[21] = hidBodyID; hid[22] = hidBodySelText; hid[23] = hidDOB; hid[24] = hidLastName; hid[25] = hidFirstName; hid[26] = hidGender; hid[27] = hidrbWithInv; hid[28] = hidrbWithoutInv; Common.setHiddenVariables(ref hid); } if (hidInstID.Value != "" && hidInstID.Value != null) { lblPageHead.Text = "Manual Process Eligibility"; lblSubHeader.Text = " for " + InstRep.InstituteName(hidUniID.Value, hidInstID.Value); } StudentAdvancedSearchCtrl.QstrNavigate = null; StudentAdvancedSearchCtrl.StrUrl = "ELGV2_ManualProcess__2.aspx?Search=" + "Adv"; StudentAdvancedSearchCtrl.GridType = "IA"; if (Request.QueryString["Search"] == "Adv") { if (Request.QueryString["Navigate"] == "back") { StudentAdvancedSearchCtrl.QstrNavigate = "back"; //StudentAdvancedSearchCtrl.StrUrl = "ELGV2_ManualProcess__2.aspx?Search=" + "Adv" + "&Inv=" + hidInv.Value.ToString() + "&CollElg=" + hidElgStatusColl.Value.ToString() + "&FilterYesNoExBody=" + hidrbFilterYesNo.Value.ToString() + "&AcYear=" + hid_fk_AcademicYr_ID.Value.ToString() + "&AcYearText=" + hidAcademicYrText.Value.ToString() + "&StateID=" + hidStateID.Value.ToString() + "BodyID=" + hidBodyID.Value.ToString() + "BodyText=" + hidBodySelText.Value.ToString() + "InstituteID=" + hidInstID.Value.ToString() + "Faculty=" + hidpkFacID.Value.ToString() + "Course=" + hidpkCrID.Value.ToString() + "MoLearning=" + hidpkMoLrnID.Value.ToString() + "Pattern=" + hidpkPtrnID.Value.ToString() + "Branch=" + hidpkBrnID.Value.ToString() + "CoursePrtDetails=" + hidpkCrPrDetailsID.Value.ToString() + "ElgFormNo=" + hidElgFormNo.Value.ToString(); //StudentAdvancedSearchCtrl.GridType = "IA"; divAdvSearch.Style.Remove("display"); divAdvSearch.Style.Add("display", "block"); divSimpleSearch.Style.Remove("display"); divSimpleSearch.Style.Add("display", "none"); StudentAdvancedSearchCtrl.Div1.Style.Add("display", "block"); if (Request.QueryString["AcYear"] != "0") { lblAcademicYear.Text = " [Academic Year " + Request.QueryString["AcYearText"].ToString() + "]"; //lblAcademicYear.Text = " for Academic Year " + hidAcademicYrText.Value; lblAcademicYear.Attributes.Add("style", "display:inline"); } else if (Request.QueryString["AcYear"] == "0") { lblAcademicYear.Attributes.Add("style", "display:none"); } } else { StudentAdvancedSearchCtrl.QstrNavigate = null; StudentAdvancedSearchCtrl.StrUrl = "ELGV2_ManualProcess__2.aspx?Search=" + "Adv"; } } else if (Request.QueryString["Search"] == "Simple") { divAdvSearch.Style.Remove("display"); divSimpleSearch.Style.Remove("display"); divSimpleSearch.Style.Add("display", "block"); divAdvSearch.Style.Add("display", "none"); } if (hidSearchType.Value == "Simple") { divAdvSearch.Style.Remove("display"); divSimpleSearch.Style.Remove("display"); divSimpleSearch.Style.Add("display", "block"); divAdvSearch.Style.Add("display", "none"); StudentAdvancedSearchCtrl.DivFilterExamBody.Style.Add("display", "none"); StudentAdvancedSearchCtrl.Div1.Style.Add("display", "none"); } else if (hidSearchType.Value == "Adv") { divAdvSearch.Style.Remove("display"); divSimpleSearch.Style.Remove("display"); divAdvSearch.Style.Add("display", "block"); divSimpleSearch.Style.Add("display", "none"); StudentAdvancedSearchCtrl.DivFilterExamBody.Style.Add("display", "none"); StudentAdvancedSearchCtrl.Div1.Style.Add("display", "none"); //if (hid_fk_AcademicYr_ID.Value.ToString() != "0" || hid_fk_AcademicYr_ID.Value != "" || hid_fk_AcademicYr_ID.Value != null) if (hidAcademicYrText.Value != "--- Select ---") { lblAcademicYear.Text = " [Academic Year " + hidAcademicYrText.Value + "]"; lblAcademicYear.Attributes.Add("style", "display:inline"); } else if (hidAcademicYrText.Value == "--- Select ---") { lblAcademicYear.Attributes.Add("style", "display:none"); StudentAdvancedSearchCtrl.DivFilterExamBody.Style.Add("display", "none"); StudentAdvancedSearchCtrl.Div1.Style.Add("display", "none"); } } }
protected void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here clsCache.NoCache(); ContentPlaceHolder CntphM = (ContentPlaceHolder)Page.Master.FindControl("ContentPlaceHolder1"); RegStudentAdvancedSearchCtrl = (Eligibility.WebCtrl.StudentsStatusSearch)CntphM.FindControl("StudentsStatusSearch1"); if (!IsPostBack) { ContentPlaceHolder Cntph1 = (ContentPlaceHolder)Page.PreviousPage.Master.FindControl("ContentPlaceHolder1"); searchInstNew temp = (searchInstNew)Cntph1.FindControl("SchInst1"); hidInstID.Value = ((HtmlInputHidden)Cntph1.FindControl("hidInstID")).Value; hidUniID.Value = Classes.clsGetSettings.UniversityID.ToString(); HtmlInputHidden[] hid = new HtmlInputHidden[13]; hid[0] = hidInstID; hid[1] = hidUniID; hid[2] = hidElgFormNo; hid[3] = hidpkStudentID; hid[4] = hidpkYear; hid[5] = hidpkFacID; hid[6] = hidpkCrID; hid[7] = hidpkMoLrnID; hid[8] = hidpkPtrnID; hid[9] = hidpkBrnID; hid[10] = hidpkCrPrDetailsID; hid[11] = hidPRN; hid[12] = hidIsBlank; Common.setHiddenVariables(ref hid); } ContentPlaceHolder Cntph = (ContentPlaceHolder)Page.Master.FindControl("ContentPlaceHolder1"); RegStudentAdvancedSearchCtrl = (Eligibility.WebCtrl.StudentsStatusSearch)Cntph.FindControl("StudentsStatusSearch1"); if (hidInstID.Value != "" && hidInstID.Value != null) { lblPageHead.Text = "View Eligibility Status"; lblSubHeader.Text = " for " + InstRep.InstituteName(hidUniID.Value, hidInstID.Value); } RegStudentAdvancedSearchCtrl.QstrNavigate = null; RegStudentAdvancedSearchCtrl.StrUrl = "ELGV2_ViewStatus__2.aspx?Search=Adv"; if (Request.QueryString["Search"] == "Adv") { if (Request.QueryString["Navigate"] == "back") { RegStudentAdvancedSearchCtrl.QstrNavigate = "back"; } else { RegStudentAdvancedSearchCtrl.QstrNavigate = null; } RegStudentAdvancedSearchCtrl.StrUrl = "ELGV2_ViewStatus__2.aspx?Search=Adv"; } else if (Request.QueryString["Search"] == "Simple") { if (Request.QueryString["Navigate"] == "back") { RegStudentAdvancedSearchCtrl.QstrNavigate = "back"; RegStudentAdvancedSearchCtrl.StrUrl = "ELGV2_ViewStatus__2.aspx?Search=Simple"; } } //added by Deboshree 16/7/10 if (RegStudentAdvancedSearchCtrl.HidSearchType.Equals("Simple"))// || Request.QueryString["Search"] == "Simple") { RegStudentAdvancedSearchCtrl.StrUrl = "ELGV2_ViewStatus__2.aspx?Search=Simple"; } else if (RegStudentAdvancedSearchCtrl.HidSearchType.Equals("Adv"))// || Request.QueryString["Search"] == "Adv") { RegStudentAdvancedSearchCtrl.StrUrl = "ELGV2_ViewStatus__2.aspx?Search=Adv"; } try { hidIsPRNValidationRequired.Value = Classes.clsGetSettings.IsPRNValidationRequired; } catch { hidIsPRNValidationRequired.Value = "N"; } }
protected void Page_Load(object sender, System.EventArgs e) { clsCache.NoCache(); btnSimpleSearch.Attributes.Add("onclick", "return ChkValidation();"); ContentPlaceHolder Cntph = (ContentPlaceHolder)Page.Master.FindControl("ContentPlaceHolder1"); StudentAdvancedSearchCtrl = (Eligibility.WebCtrl.StudentAdvancedSearchforManualProcess_reg_Students)Cntph.FindControl("StudentAdvancedSearchforManualProcess1"); //StudentAdvancedSearchCtrl = (Eligibility.WebCtrl.StudentAdvancedSearchforManualProcess_reg_Students)Page.FindControl("StudentAdvancedSearchforManualProcess1"); //******** //hid_fk_AcademicYr_ID.Value = StudentAdvancedSearchCtrl.ddlAcademicYear.SelectedValue.ToString(); //hidAcademicYrText.Value = StudentAdvancedSearchCtrl.ddlAcademicYear.SelectedItem.ToString(); if (!IsPostBack) { ContentPlaceHolder Cntph1 = (ContentPlaceHolder)Page.PreviousPage.Master.FindControl("ContentPlaceHolder1"); searchInstNew temp = (searchInstNew)Cntph1.FindControl("SchInst1"); hidInstID.Value = ((HtmlInputHidden)Cntph1.FindControl("hidInstID")).Value; hidUniID.Value = Classes.clsGetSettings.UniversityID.ToString(); try { hidIsPRNValidationRequired.Value = Classes.clsGetSettings.IsPRNValidationRequired; } catch { hidIsPRNValidationRequired.Value = "N"; } if (Request.QueryString["Search"] == "Simple" && Request.QueryString["Navigate"] == "back") { hidPRN.Value = ((HtmlInputHidden)Cntph1.FindControl("hidPRN")).Value; hidElgFormNo.Value = ((HtmlInputHidden)Cntph1.FindControl("hidElgFormNo")).Value; hidIsBlank.Value = ((HtmlInputHidden)Cntph1.FindControl("hidIsBlank")).Value; } HtmlInputHidden[] hid = new HtmlInputHidden[20]; hid[0] = hidInstID; hid[1] = hidUniID; hid[2] = hidElgFormNo; hid[3] = hidpkStudentID; hid[4] = hidpkYear; hid[5] = hidpkFacID; hid[6] = hidpkCrID; hid[7] = hidpkMoLrnID; hid[8] = hidpkPtrnID; hid[9] = hidpkBrnID; hid[10] = hidpkCrPrDetailsID; hid[11] = hidElgStatusColl; hid[12] = hidCollElgFlag; hid[13] = hidCollElgFlagReason; hid[14] = hidPRN; hid[15] = hidInv; hid[16] = hidIsBlank; hid[17] = hid_fk_AcademicYr_ID; hid[18] = hidAcademicYrText; hid[19] = hidIsPRNValidationRequired; Common.setHiddenVariables(ref hid); } if (hidInstID.Value != "" && hidInstID.Value != null) { lblPageHead.Text = "Manual Process Eligibility"; lblSubHeader.Text = " for " + InstRep.InstituteName(hidUniID.Value, hidInstID.Value); } //StudentAdvancedSearchCtrl = (Eligibility.WebCtrl.StudentAdvancedSearchforManualProcess_reg_Students)Page.FindControl("StudentAdvancedSearchForManualProcess1"); StudentAdvancedSearchCtrl.QstrNavigate = null; StudentAdvancedSearchCtrl.StrUrl = "ELGV2_ManualProcess_reg_Students__2.aspx?Search=" + "Adv"; StudentAdvancedSearchCtrl.GridType = "IA"; if (Request.QueryString["Search"] == "Adv") { if (Request.QueryString["Navigate"] == "back") { /*ContentPlaceHolder Cntph2 = (ContentPlaceHolder)Page.PreviousPage.Master.FindControl("ContentPlaceHolder1"); * * hidPRN.Value = ((HtmlInputHidden)Cntph1.FindControl("hidPRN")).Value; * hidElgFormNo.Value = ((HtmlInputHidden)Cntph1.FindControl("hidElgFormNo")).Value; * hidIsBlank.Value = ((HtmlInputHidden)Cntph1.FindControl("hidIsBlank")).Value;*/ StudentAdvancedSearchCtrl.QstrNavigate = "back"; // StudentAdvancedSearchCtrl.StrUrl = "ELGV2_ManualProcess_reg_Students__2.aspx?Search=" + "Adv" + "&Inv=" + hidInv.Value.ToString() + "&CollElg=" + hidElgStatusColl.Value.ToString(); //// StudentAdvancedSearchCtrl.GridType = "IA"; // divAdvSearch.Style.Remove("display"); // divAdvSearch.Style.Add("display", "block"); // divSimpleSearch.Style.Remove("display"); // divSimpleSearch.Style.Add("display", "none"); // if (Request.QueryString["AcYear"] != "0") // { // lblAcademicYear.Text = " [Academic Year " + Request.QueryString["AcYearText"].ToString() + "]"; //+ hidAcademicYrText.Value; // lblAcademicYear.Attributes.Add("style", "display:inline"); // } // else if (Request.QueryString["AcYear"] == "0") // { // lblAcademicYear.Attributes.Add("style", "display:none"); // } } else { StudentAdvancedSearchCtrl.QstrNavigate = null; StudentAdvancedSearchCtrl.StrUrl = "ELGV2_ManualProcess_reg_Students__2.aspx?Search=" + "Adv"; } } else if (Request.QueryString["Search"] == "Simple") { if (Request.QueryString["Navigate"] == "back") { StudentAdvancedSearchCtrl.QstrNavigate = "back"; //divAdvSearch.Style.Remove("display"); //divSimpleSearch.Style.Remove("display"); //divSimpleSearch.Style.Add("display", "block"); //divAdvSearch.Style.Add("display", "none"); //if (hidIsBlank.Value != "") //{ // txtElgFormNo.Text = hidElgFormNo.Value; //} //else //{ // txtPRN.Text = hidPRN.Value; //} //if (Request.QueryString["Inv"] == "1") //{ // rbWithInv.Checked = true; // rbWithoutInv.Checked = false; //} //else if (Request.QueryString["Inv"] == "0") //{ // rbWithoutInv.Checked = true; // rbWithInv.Checked = false; //} //fnFetchStudent(); } } //if (hidSearchType.Value == "Simple") //{ // divAdvSearch.Style.Remove("display"); // divSimpleSearch.Style.Remove("display"); // divSimpleSearch.Style.Add("display", "block"); // divAdvSearch.Style.Add("display", "none"); //} //else if (hidSearchType.Value == "Adv") //{ // divAdvSearch.Style.Remove("display"); // divSimpleSearch.Style.Remove("display"); // divAdvSearch.Style.Add("display", "block"); // divSimpleSearch.Style.Add("display", "none"); // //if (hid_fk_AcademicYr_ID.Value != "0" || hid_fk_AcademicYr_ID.Value != "") // if (hidAcademicYrText.Value != "--- Select ---") // { // lblAcademicYear.Text = " for Academic Year " + hidAcademicYrText.Value; // lblAcademicYear.Attributes.Add("style", "display:inline"); // } // else if (hidAcademicYrText.Value == "--- Select ---") // { // lblAcademicYear.Attributes.Add("style", "display:none"); // } //} }
protected void Page_Load(object sender, EventArgs e) { clsCache.NoCache(); Ajax.Utility.RegisterTypeForAjax(typeof(Eligibility.AjaxMethods), this.Page); Ajax.Utility.RegisterTypeForAjax(typeof(Student.clsStudent), this.Page); //dgElgRegular.Visible = false; dgRegPendingStudents1.Visible = false; lblGridName.Style.Remove("display"); lblGridName.Style.Add("display", "none"); divDGNote.Style.Remove("display"); divDGNote.Style.Add("display", "none"); if (!IsPostBack) { HtmlInputHidden[] hid = new HtmlInputHidden[22]; hid[0] = hidInstID; hid[1] = hidUniID; hid[2] = hidFacID; hid[3] = hidCrID; hid[4] = hidMoLrnID; hid[5] = hidPtrnID; hid[6] = hidBrnID; hid[7] = hidCrPrDetailsID; hid[8] = hidElgFormNo; hid[9] = hidElgStatusColl; hid[10] = hidpkStudentID; hid[11] = hidDOB; hid[12] = hidFirstName; hid[13] = hidLastName; hid[14] = hidGender; hid[15] = hidCollElgFlag; hid[16] = hidPRN; hid[17] = hidInv; hid[18] = hid_fk_AcademicYr_ID; hid[19] = hid_AcademicYear; hid[20] = hidAcademicYrText; hid[21] = hidIsPRNValidationRequired; if (Page.PreviousPage != null) { ContentPlaceHolder Cntp = (ContentPlaceHolder)Page.Master.FindControl("ContentPlaceHolder1"); if (((HtmlInputHidden)Cntp.FindControl("hidInstID")).Value != null || ((HtmlInputHidden)Cntp.FindControl("hidInstID")).Value != "") { hidInstID.Value = ((HtmlInputHidden)Cntp.FindControl("hidInstID")).Value; } } try { hidIsPRNValidationRequired.Value = Classes.clsGetSettings.IsPRNValidationRequired; } catch { hidIsPRNValidationRequired.Value = "N"; } Common.setHiddenVariables(ref hid); hidIsBack.Value = "False"; DataTable dt = clsCollegeAdmissionReports.GetAcademicYear(); CommonAcYr.fillDropDown(ddlAcademicYear, dt, "", "Year", "pk_AcademicYear_ID", "--- Select ---"); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // When control is transfered back to this page from ELGV2_ManualProcess_reg_Students__2.aspx page if (qstrNavigate == "back") { //*********** hidSearchType.Value = Request.QueryString[1].ToString(); hidIsBack.Value = "True"; if (Page.PreviousPage != null) { ContentPlaceHolder Cntp = (ContentPlaceHolder)Page.PreviousPage.Master.FindControl("ContentPlaceHolder1"); if (((HtmlInputHidden)Cntp.FindControl("hidInstID")).Value != null || ((HtmlInputHidden)Cntp.FindControl("hidInstID")).Value != "") { hidInstID.Value = ((HtmlInputHidden)Cntp.FindControl("hidInstID")).Value; hidUniID.Value = Classes.clsGetSettings.UniversityID.ToString(); hidCrPrDetailsID.Value = ((HtmlInputHidden)Cntp.FindControl("hidCrPrDetailsID")).Value; hidElgFormNo.Value = ((HtmlInputHidden)Cntp.FindControl("hidElgFormNo")).Value; hid_fk_AcademicYr_ID.Value = ((HtmlInputHidden)Cntp.FindControl("hid_fk_AcademicYr_ID")).Value; hidAcademicYrText.Value = ((HtmlInputHidden)Cntp.FindControl("hidAcademicYrText")).Value; hidBranchName.Value = ((HtmlInputHidden)Cntp.FindControl("hidBranchName")).Value; hidGender.Value = ((HtmlInputHidden)Cntp.FindControl("hidGender")).Value; hidFacID.Value = ((HtmlInputHidden)Cntp.FindControl("hidddlFaculty")).Value; hidCrID.Value = ((HtmlInputHidden)Cntp.FindControl("hidddlCourse")).Value; hidMoLrnID.Value = ((HtmlInputHidden)Cntp.FindControl("hidddlMoLrn")).Value; hidPtrnID.Value = ((HtmlInputHidden)Cntp.FindControl("hidddlCrPtrn")).Value; hidBrnID.Value = ((HtmlInputHidden)Cntp.FindControl("hidddlbranch")).Value; hidLastName.Value = ((HtmlInputHidden)Cntp.FindControl("hidLastName")).Value; hidFirstName.Value = ((HtmlInputHidden)Cntp.FindControl("hidFirstName")).Value; hidDOB.Value = ((HtmlInputHidden)Cntp.FindControl("hidDOB")).Value; string dob = ((HtmlInputHidden)Cntp.FindControl("hidDOB")).Value; if (dob != "") { string[] arr = new string[3]; arr = dob.Split('/'); dob = arr[1] + '/' + arr[0] + '/' + arr[2]; } txtDOB.Text = dob; //************ if (hidSearchType.Value == "Simple") { hidElgFormNo.Value = ((HtmlInputHidden)Cntp.FindControl("hidElgFormNo")).Value; hidPRN.Value = ((HtmlInputHidden)Cntp.FindControl("hidPRN")).Value; hidPRNorElgFormNo.Value = ((HtmlInputHidden)Cntp.FindControl("hidPRNorElgFormNo")).Value; } } } lblGridName.Attributes.Add("style", "display:none"); if (hidSearchType.Value == "Adv") // When Advanced search is to be restored { ddlAcademicYear.Items.FindByValue(hid_fk_AcademicYr_ID.Value).Selected = true; txtLastName.Text = hidLastName.Value; txtFirstName.Text = hidFirstName.Value; ddlGender.Items.FindByValue(hidGender.Value).Selected = true; FillFacultyWiseCourseCoursePart(hidFacID.Value, hidCrID.Value, hidMoLrnID.Value, hidPtrnID.Value, hidBrnID.Value, hidCrPrDetailsID.Value); if (Request.QueryString["CollElg"] == "1") { rbUni.Checked = true; rbColl.Checked = false; } else if (Request.QueryString["CollElg"] == "0") { rbUni.Checked = false; rbColl.Checked = true; } //if (Request.QueryString["Inv"] == "1") //{ // rbWithInv.Checked = true; // rbWithoutInv.Checked = false; // hidWithOrWithoutInv.Value = "WithInv"; //} //else if (Request.QueryString["Inv"] == "0") //{ // rbWithoutInv.Checked = true; // rbWithInv.Checked = false; // hidWithOrWithoutInv.Value = "WithoutInv"; //} hidSearchType.Value = "Adv"; lbl_AdvSearch.InnerText = "Simple Search"; hidInstName.Value = InstRep.InstituteName(hidUniID.Value, hidInstID.Value); // Filling Gridview fnDisplayRegGrid(); trbtnSearch.Style.Add("display", "block"); } else // When Simple search is to be restored { hidSearchType.Value = "Simple"; lbl_AdvSearch.InnerText = "Advanced Search"; //if (hidIsBlank.Value != "") if (hidPRNorElgFormNo.Value == "ElgFormNo") { txtElgFormNo.Text = hidElgFormNo.Value; } else if (hidPRNorElgFormNo.Value == "PRN") { txtPRN.Text = hidPRN.Value; } //if (Request.QueryString["Inv"] == "1") //{ // rbWithInv_Simple.Checked = true; // rbWithoutInv_Simple.Checked = false; //} //else if (Request.QueryString["Inv"] == "0") //{ // rbWithoutInv_Simple.Checked = true; // rbWithInv_Simple.Checked = false; //} FillFacultyWiseCourseCoursePart(hidFacID.Value, hidCrID.Value, hidMoLrnID.Value, hidPtrnID.Value, hidBrnID.Value, hidCrPrDetailsID.Value); hidInstName.Value = InstRep.InstituteName(hidUniID.Value, hidInstID.Value); // Filling Gridview with single record fnFetchStudent(); } } else { hidUniID.Value = Classes.clsGetSettings.UniversityID.ToString(); hidInstName.Value = InstRep.InstituteName(hidUniID.Value, hidInstID.Value); FillFaculty(); } //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ } else { hidUniID.Value = Classes.clsGetSettings.UniversityID.ToString(); FillFacultyWiseCourseCoursePart(hidFacID.Value, hidCrID.Value, hidMoLrnID.Value, hidPtrnID.Value, hidBrnID.Value, hidCrPrDetailsID.Value); } btnClear.Attributes.Add("onclick", " return fnClearSearchCriteria();"); if (hidSearchType.Value == "Simple") { DivAdvanceSearch.Attributes.Add("style", "display:none"); divSimpleSearch.Style.Add("display", "block"); lbl_AdvSearch.InnerText = "Advanced Search"; } else if (hidSearchType.Value == "Adv") { DivAdvanceSearch.Attributes.Add("style", "display:block"); divSimpleSearch.Style.Add("display", "none"); lbl_AdvSearch.InnerText = "Simple Search"; } else { } string a = hidIsPRNValidationRequired.Value; }
protected void Page_Load(object sender, System.EventArgs e) { clsCache.NoCache(); // Put user code to initialize the page here if (!IsPostBack) { HtmlInputHidden[] hid = new HtmlInputHidden[20]; hid[0] = hidInstID; hid[1] = hidUniID; hid[2] = hidElgFormNo; hid[3] = hidpkFacID; hid[4] = hidpkYear; hid[5] = hidpkStudentID; hid[6] = hidpkCrID; hid[7] = hidpkMoLrnID; hid[8] = hidpkPtrnID; hid[9] = hidpkBrnID; hid[10] = hidpkCrPrDetailsID; hid[11] = hidAcademicYr; hid[12] = hid_fk_AcademicYr_ID; hid[13] = hidAcademicYrText; hid[14] = hidFacName; hid[15] = hidCrName; hid[16] = hidMOLName; hid[17] = hidPattern; hid[18] = hidBrName; hid[19] = hidSearchType; Common.setHiddenVariables(ref hid); } if (hidInstID.Value != "" && hidInstID.Value != null) { // hidInstID.Value = Request.QueryString["InstituteID"].ToString().Trim(); lblPageHead.Text = "Resolve Pending Eligibility"; lblSubHeader.Text = " for " + InstRep.InstituteName(hidUniID.Value, hidInstID.Value); //lblInstitute.Text = " for " + clsInstitute.InstituteName(hidUniID.Value, hidInstID.Value); } rbEligible.Attributes.Add("onclick", "fnDisplayDiv();"); rbProvisional.Attributes.Add("onclick", "fnDisplayDiv();"); rbDefaulter.Attributes.Add("onclick", "fnDisplayDiv();"); rbPending.Attributes.Add("onclick", "fnDisplayDiv();"); btnSubmit.Attributes.Add("onclick", "return fnConfirm();"); userob = (clsUser)Session["User"]; userid = userob.User_ID.ToString(); if (Request.QueryString["Search"] == "Simple") { btnGoTo.Text = "Go To Search"; } else // Search == "Adv" { btnGoTo.Text = "Go To Student List"; } if (!IsPostBack) { ContentPlaceHolder Cntph = (ContentPlaceHolder)Page.PreviousPage.Master.FindControl("ContentPlaceHolder1"); WebCtrl.StudentAdvanceSeachForConfigure tempHidden = (WebCtrl.StudentAdvanceSeachForConfigure)Cntph.FindControl("StudentAdvanceSeachForConfigure1"); //reg_PendingStudentEligibility ob = (reg_PendingStudentEligibility)System.Web.HttpContext.Current.Handler; //WebCtrl.StudentAdvanceSeachForConfigure tempHidden = (WebCtrl.StudentAdvanceSeachForConfigure)ob.FindControl("StudentAdvanceSeachForConfigure1"); if (Request.QueryString["Search"] == "Adv") { hidElgFormNo.Value = ((HtmlInputHidden)tempHidden.FindControl("hidElgFormNo")).Value; hidpkYear.Value = ((HtmlInputHidden)tempHidden.FindControl("hidpkYear")).Value; hidpkStudentID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidpkStudentID")).Value; hidpkFacID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidFacID")).Value; hidpkCrID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidCrID")).Value; hidpkMoLrnID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidCrMoLrnID")).Value; hidpkPtrnID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidPtrnID")).Value; hidpkBrnID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidBrnID")).Value; hidpkCrPrDetailsID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidCrPrDetailsID")).Value; hid_fk_AcademicYr_ID.Value = ((HtmlInputHidden)tempHidden.FindControl("hid_fk_AcademicYr_ID")).Value; hidAcademicYrText.Value = ((HtmlInputHidden)tempHidden.FindControl("hidAcademicYrText")).Value; hidFacName.Value = ((HtmlInputHidden)tempHidden.FindControl("hidFacName")).Value; hidCrName.Value = ((HtmlInputHidden)tempHidden.FindControl("hidCrName")).Value; hidMOLName.Value = ((HtmlInputHidden)tempHidden.FindControl("hidMOLName")).Value; hidPattern.Value = ((HtmlInputHidden)tempHidden.FindControl("hidPattern")).Value; hidBrName.Value = ((HtmlInputHidden)tempHidden.FindControl("hidBrName")).Value; hidInstID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidInstID")).Value; hidAcYrName.Value = ((HtmlInputHidden)tempHidden.FindControl("hidAcYrName")).Value; hidSearchType.Value = ((HtmlInputHidden)tempHidden.FindControl("hidSearchType")).Value; hidBranchName.Value = ((HtmlInputHidden)tempHidden.FindControl("hidBranchName")).Value; } if (Request.QueryString["Search"] == "Simple") { hidElgFormNo.Value = ((HtmlInputHidden)tempHidden.FindControl("hidElgFormNo")).Value; hidpkYear.Value = ((HtmlInputHidden)tempHidden.FindControl("hidpkYear")).Value; hidpkStudentID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidpkStudentID")).Value; hidpkFacID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidFacID")).Value; hidpkCrID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidCrID")).Value; hidpkMoLrnID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidCrMoLrnID")).Value; hidpkPtrnID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidPtrnID")).Value; hidpkBrnID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidBrnID")).Value; hidpkCrPrDetailsID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidCrPrDetailsID")).Value; hidInstID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidInstID")).Value; hid_fk_AcademicYr_ID.Value = ((HtmlInputHidden)tempHidden.FindControl("hid_fk_AcademicYr_ID")).Value; hidIsBlank.Value = ((HtmlInputHidden)tempHidden.FindControl("hidIsBlank")).Value; } hidElgFlag.Value = "NotAssigned"; FetchStudentDetails(); divPRN.Style.Add("Display", "none"); GoToDataBase = 1; Session["GoToDataBase"] = GoToDataBase; } else if (IsPostBack) { GoToDataBase = Convert.ToInt32(Session["GoToDataBase"].ToString()); } }
protected void Page_Load(object sender, System.EventArgs e) { clsCache.NoCache(); //RegStudentAdvancedSearchCtrl = (Eligibility.WebCtrl.StudentAdvanceSearchForConfigure_reg_Students)Page.FindControl("StudentAdvanceSeachForConfigure1"); ContentPlaceHolder Cntph = (ContentPlaceHolder)Page.Master.FindControl("ContentPlaceHolder1"); RegStudentAdvancedSearchCtrl = (Eligibility.WebCtrl.StudentAdvanceSearchForConfigure_reg_Students)Cntph.FindControl("StudentAdvanceSeachForConfigure1"); hid_fk_AcademicYr_ID.Value = RegStudentAdvancedSearchCtrl.ddlAcademicYear.SelectedValue.ToString(); hidAcademicYrText.Value = RegStudentAdvancedSearchCtrl.ddlAcademicYear.SelectedItem.ToString(); try { hidIsPRNValidationRequired.Value = Classes.clsGetSettings.IsPRNValidationRequired; } catch { hidIsPRNValidationRequired.Value = "N"; } // Put user code to initialize the page here if (!IsPostBack) { ContentPlaceHolder Cntph1 = (ContentPlaceHolder)Page.PreviousPage.Master.FindControl("ContentPlaceHolder1"); searchInstNew temp = (searchInstNew)Cntph1.FindControl("SchInst1"); hidInstID.Value = ((HtmlInputHidden)Cntph1.FindControl("hidInstID")).Value; hidUniID.Value = Classes.clsGetSettings.UniversityID.ToString(); if (Request.QueryString["Search"] == "Simple" && Request.QueryString["Navigate"] == "back") { hidPRN.Value = ((HtmlInputHidden)Cntph1.FindControl("hidPRN")).Value; hidElgFormNo.Value = ((HtmlInputHidden)Cntph1.FindControl("hidElgFormNo")).Value; hidIsBlank.Value = ((HtmlInputHidden)Cntph1.FindControl("hidIsBlank")).Value; } HtmlInputHidden[] hid = new HtmlInputHidden[20]; hid[0] = hidInstID; hid[1] = hidUniID; hid[2] = hidElgFormNo; hid[3] = hidpkStudentID; hid[4] = hidpkYear; hid[5] = hidpkFacID; hid[6] = hidpkCrID; hid[7] = hidpkMoLrnID; hid[8] = hidpkPtrnID; hid[9] = hidpkBrnID; hid[10] = hidpkCrPrDetailsID; hid[11] = hidPRN; hid[12] = hidIsBlank; hid[13] = hid_fk_AcademicYr_ID; hid[14] = hidAcademicYrText; hid[13] = hidFacName; hid[14] = hidCrName; hid[15] = hidMOLName; hid[16] = hidPattern; hid[17] = hidBrName; hid[18] = hidAcYrName; hid[19] = hidSearchType; Common.setHiddenVariables(ref hid); } if (hidInstID.Value != "" && hidInstID.Value != null) { lblPageHead.Text = "Resolve Pending Eligibility"; lblSubHeader.Text = " for " + InstRep.InstituteName(hidUniID.Value, hidInstID.Value); } RegStudentAdvancedSearchCtrl.QstrNavigate = null; RegStudentAdvancedSearchCtrl.StrUrl = "ELGV2_ResolvePending_reg_Students__2.aspx?Search=Adv"; RegStudentAdvancedSearchCtrl.GridType = "Reg"; if (Request.QueryString["Search"] == "Adv") { if (Request.QueryString["Navigate"] == "back") { RegStudentAdvancedSearchCtrl.QstrNavigate = "back"; RegStudentAdvancedSearchCtrl.StrUrl = "ELGV2_ResolvePending_reg_Students__2.aspx?Search=Adv"; RegStudentAdvancedSearchCtrl.GridType = "Reg"; divAdvSearch.Style.Add("display", "block"); divSimpleSearch.Style.Add("display", "none"); divAdvSearch.Style.Remove("display"); } else { RegStudentAdvancedSearchCtrl.QstrNavigate = null; RegStudentAdvancedSearchCtrl.StrUrl = "ELGV2_ResolvePending_reg_Students__2.aspx?Search=Adv"; RegStudentAdvancedSearchCtrl.GridType = "Reg"; } } else if (Request.QueryString["Search"] == "Simple") { if (Request.QueryString["Navigate"] == "back") { RegStudentAdvancedSearchCtrl.QstrNavigate = "back"; } } if (RegStudentAdvancedSearchCtrl.HidSearchType.Equals("Simple"))// || Request.QueryString["Search"] == "Simple") { RegStudentAdvancedSearchCtrl.StrUrl = "ELGV2_ResolvePending_reg_Students__2.aspx?Search=Simple"; } else if (RegStudentAdvancedSearchCtrl.HidSearchType.Equals("Adv"))// || Request.QueryString["Search"] == "Adv") { RegStudentAdvancedSearchCtrl.StrUrl = "ELGV2_ResolvePending_reg_Students__2.aspx?Search=Adv"; } RegStudentAdvancedSearchCtrl.GridType = "Reg"; }