protected void Page_Load(object sender, System.EventArgs e) { Classes.clsCache.NoCache(); //Ajax.Utility.RegisterTypeForAjax(typeof(Eligibility.IA_StudentEligibility__1)); Ajax.Utility.RegisterTypeForAjax(typeof(Eligibility.AjaxMethods), this.Page); if (Request.QueryString["Search"] == "Simple") { btnGoTo.Text = "Go To Search"; } else // Search == "Adv" { btnGoTo.Text = "Go To Student List"; } rbEligible.Attributes.Add("onclick", "fnDisplayDiv();"); rbDefaulter.Attributes.Add("onclick", "fnDisplayDiv();"); rbPending.Attributes.Add("onclick", "fnDisplayDiv();"); btnSubmit.Attributes.Add("onclick", "return fnConfirm();"); //Getting UserID userob = (clsUser)Session["User"]; userid = userob.User_ID.ToString(); if (!IsPostBack) { IA_StudentEligibility ob = (IA_StudentEligibility)System.Web.HttpContext.Current.Handler; WebCtrl.StudentsAdvancedSearch tempHidden = (WebCtrl.StudentsAdvancedSearch)ob.FindControl("StudentsAdvancedSearch1"); if (Request.QueryString["Search"] == "Adv") { hidElgFormNo.Value = ((HtmlInputHidden)tempHidden.FindControl("hidElgFormNo")).Value; hidCrMoLrnPtrnID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidCrMoLrnPtrnID")).Value; } if (Request.QueryString["Search"] == "Simple") { hidElgFormNo.Value = ((HtmlInputHidden)ob.FindControl("hidElgFormNo")).Value; } FetchStudentDetails(); GoToDataBase = 1; Session["GoToDataBase"] = GoToDataBase; } else if (IsPostBack) { GoToDataBase = Convert.ToInt32(Session["GoToDataBase"].ToString()); Image1.ImageUrl = "PhotoAndSignTemp.aspx?img=PSession"; Image2.ImageUrl = "PhotoAndSignTemp.aspx?img=SSession"; } }
protected void Page_Load(object sender, System.EventArgs e) { Classes.clsCache.NoCache(); //Ajax.Utility.RegisterTypeForAjax(typeof(Eligibility.IA_StudentEligibility__1)); Ajax.Utility.RegisterTypeForAjax(typeof(Eligibility.AjaxMethods), this.Page); if (!IsPostBack) { HtmlInputHidden[] hid = new HtmlInputHidden[6]; hid[0] = hidInstID; hid[1] = hidUniID; hid[2] = hidElgFormNo; hid[3] = hidCrMoLrnPtrnID; hid[4] = hidpkYear; hid[5] = hidpkStudentID; Common.setHiddenVariables(ref hid); } if (hidInstID.Value != "" && hidInstID.Value != null) { // hidInstID.Value = Request.QueryString["InstituteID"].ToString().Trim(); lblTitle.Text = "Manual Process Eligibility"; lblInstitute.Text = " for " + Classes.InstituteRepository.InstituteName(hidUniID.Value, hidInstID.Value); } if (Request.QueryString["Search"] == "Simple") { btnGoTo.Text = "Go To Search"; } else // Search == "Adv" { btnGoTo.Text = "Go To Student List"; } rbEligible.Attributes.Add("onclick", "fnDisplayDiv();"); rbDefaulter.Attributes.Add("onclick", "fnDisplayDiv();"); rbPending.Attributes.Add("onclick", "fnDisplayDiv();"); btnSubmit.Attributes.Add("onclick", "return fnConfirm();"); //Getting UserID userob = (clsUser)Session["User"]; userid = userob.User_ID.ToString(); if (!IsPostBack) { IA_StudentEligibility ob = (IA_StudentEligibility)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; hidCrMoLrnPtrnID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidCrMoLrnPtrnID")).Value; } if (Request.QueryString["Search"] == "Simple") { hidElgFormNo.Value = ((HtmlInputHidden)ob.FindControl("hidElgFormNo")).Value; } FetchStudentDetails(); GoToDataBase = 1; Session["GoToDataBase"] = GoToDataBase; } else if (IsPostBack) { GoToDataBase = Convert.ToInt32(Session["GoToDataBase"].ToString()); Image1.ImageUrl = "PhotoAndSignTemp.aspx?img=PSession&sElgFormNo=" + hidElgFormNo.Value; Image2.ImageUrl = "PhotoAndSignTemp.aspx?img=SSession&sElgFormNo=" + hidElgFormNo.Value;; } }