Exemplo n.º 1
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            #region Properties For The Base Class and Check Login
            LoginID = Request.QueryString["LoginID"];
            LoginInfo = CCLib.Login.GetLoginInfo(LoginID);
            Redirect();
            PageTitle = TextCode(79);
            Section = "schools";
            CSS = "schools";
            LeftBar = "<TABLE WIDTH='100%' BORDER='0' CELLSPACING='0' CELLPADDING='0'><TR VALIGN='TOP' BGCOLOR='#996699'><TD BACKGROUND='/media/schools/i_c_prpl_bar_bg.gif'><IMG SRC='/media/schools/i_s_schools_icon.gif' WIDTH='24' HEIGHT='23' BORDER='0' alt=''><IMG SRC='/media1/USSchools/h_schools" + SuffixCode() + ".gif' WIDTH='141' HEIGHT='23' ALIGN='TOP' alt=''>";
            #endregion Properties For The Base Class and Check Login

            DelMethodReloadRepeater delReloadRepeater = new DelMethodReloadRepeater(ReloadRepeater);
            this.ucLocScholList.ReloadRepeater = delReloadRepeater;
            this.ucLocScholList.LoginID = LoginID;
            this.ucLocScholList.ResultsMsg = TextCode(10756);
            this.ucLocScholList.NoResultsMsg = TextCode(10741);
            this.ucLocScholList.FilterList = true;
            this.ucLocScholList.CriteriaLegend = true;
            this.ucLocScholList.ShowHeader = true;

            //!!! It's important to rebind the repeater on each request because we set enableviewstate of the repeater to false
            PopulateRptSchol(ucLocScholList.RepeaterFilterExpression, ucLocScholList.RepeaterFieldsFilter, ucLocScholList.RepeaterSortExpression, " ASC");

            //intFilter=dvSchools.Count;

            //if (dvSchools.Count < 14)
                //IsLongPage = false;
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            #region Properties For The Base Class and Check Login
            LoginID = Request.QueryString["LoginID"];
            LoginInfo = CCLib.Login.GetLoginInfo(LoginID);
            Redirect();
            PageTitle = TextCode(79);
            Section = "schools";
            CSS = "schools";
            LeftBar = "<TABLE WIDTH='100%' BORDER='0' CELLSPACING='0' CELLPADDING='0'><TR VALIGN='TOP' BGCOLOR='#996699'><TD BACKGROUND='/media/schools/i_c_prpl_bar_bg.gif'><IMG SRC='/media/schools/i_s_schools_icon.gif' WIDTH='24' HEIGHT='23' BORDER='0' alt=''><IMG SRC='/media1/USSchools/h_schools" + SuffixCode() + ".gif' WIDTH='141' HEIGHT='23' ALIGN='TOP' alt=''>";
            IsLongPage = false;
            #endregion Properties For The Base Class and Check Login

            ibGo.ImageUrl = "/media1/USSchools/mout_f_srch_go" + SuffixCode() +".gif";
            ibGo.AlternateText = TextCode(5679);
            ibGo.Attributes.Add("onmouseover", "imgOn('ibGo')");
            ibGo.Attributes.Add("onmouseout", "imgOff('ibGo')");

            DelMethodReloadRepeater delReloadRepeater = new DelMethodReloadRepeater(ReloadRepeater);
            this.ucLocScholList.ReloadRepeater = delReloadRepeater;
            this.ucLocScholList.LoginID = LoginID;
            this.ucLocScholList.ResultsMsg = TextCode(10815);
            this.ucLocScholList.NoResultsMsg = TextCode(10741);
            this.ucLocScholList.FilterList = false;
            this.ucLocScholList.CriteriaLegend = true;
            this.ucLocScholList.ShowHeader = true;

            // First access to the page, no search has been done by the user yet.
            if (!IsPostBack)
            {
                lblSearchTerm.Text = TextCode(10733);
                SearchResultsChart.Visible = false;
            }
            else
            {
                // Search term is required (!!! Important for FF because client-validatin doesn't work)
                if (txtSearchTerm.Text != "")
                {
                    SearchResultsChart.Visible = true;
                    //!!! It's important to rebind the repeater on each request because we set enableviewstate of the repeater to false
                    PopulateRptSchol(ucLocScholList.RepeaterFilterExpression, ucLocScholList.RepeaterFieldsFilter, ucLocScholList.RepeaterSortExpression, " ASC");
                }
            }
        }
Exemplo n.º 3
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            #region Properties For The Base Class and Check Login
            LoginID = Request.QueryString["LoginID"];
            LoginInfo = CCLib.Login.GetLoginInfo(LoginID);
            Redirect();
            PageTitle = TextCode(79);
            Section = "schools";
            CSS = "schools";
            LeftBar = "<TABLE WIDTH='100%' BORDER='0' CELLSPACING='0' CELLPADDING='0'><TR VALIGN='TOP' BGCOLOR='#996699'><TD BACKGROUND='/media/schools/i_c_prpl_bar_bg.gif'><IMG SRC='/media/schools/i_s_schools_icon.gif' WIDTH='24' HEIGHT='23' BORDER='0' alt=''><IMG SRC='/media1/USSchools/h_schools" + SuffixCode() + ".gif' WIDTH='141' HEIGHT='23' ALIGN='TOP' alt=''>";
            #endregion Properties For The Base Class and Check Login

            #region Properties For The User Control that dispays the scholarship chart
            DelMethodReloadRepeater delReloadRepeater = new DelMethodReloadRepeater(ReloadRepeater);
            this.ucLocScholList.ReloadRepeater = delReloadRepeater;
            this.ucLocScholList.LoginID = LoginID;
            this.ucLocScholList.ResultsMsg = "";
            this.ucLocScholList.NoResultsMsg = "";
            this.ucLocScholList.FilterList = false;
            this.ucLocScholList.CriteriaLegend = false;
            this.ucLocScholList.ShowHeader = false;
            #endregion Properties For The User Control that dispays the scholarship chart

            lbSave1.ToolTip = lbSave2.ToolTip = GetText(8675);

            //add your value retrieve and form post code below
            #region Initialize Values and Form Execution
            if (!IsPostBack)
            {
                // search criteria retrieve when the user comes from the SearchFinder(SF) page or the FinancialAid(FA) page
                if (CCLib.Common.Strings.GetFormString("hfPreviousPage") != "")
                {
                    if (CCLib.Common.Strings.GetFormString("hfLSSelectorCriteria") != "")
                        Session["LocalScholSelectorCriteria"] = CCLib.Common.Strings.GetFormString("hfLSSelectorCriteria");
                    else
                    {
                        #region User came from FinderSearch page
                        Session["LocalScholSelectorCriteria"] = "";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblAwardBasis:cblAwardBasis_0") != "") ? "Merit," : ",";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblAwardBasis:cblAwardBasis_1") != "") ? "Need," : ",";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblAwardBasis:cblAwardBasis_2") != "") ? "Service," : ",";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblAwardBasis:cblAwardBasis_3") != "") ? "Other|" : "|";
                        Session["LocalScholSelectorCriteria"] += CCLib.Common.Strings.GetFormString("rblGender") + "|";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblEthnicity:cblEthnicity_0") != "") ? "2," : ",";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblEthnicity:cblEthnicity_1") != "") ? "3," : ",";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblEthnicity:cblEthnicity_2") != "") ? "4," : ",";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblEthnicity:cblEthnicity_3") != "") ? "1," : ",";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblEthnicity:cblEthnicity_4") != "") ? "5," : ",";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblEthnicity:cblEthnicity_5") != "") ? "6," : ",";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblEthnicity:cblEthnicity_6") != "") ? "7|" : "|";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblDisability:cblDisability_0") != "") ? "Visual," : ",";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblDisability:cblDisability_1") != "") ? "Hearing," : ",";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblDisability:cblDisability_2") != "") ? "Physical," : ",";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblDisability:cblDisability_3") != "") ? "Learning," : ",";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblDisability:cblDisability_4") != "") ? "Other|" : "|";
                        Session["LocalScholSelectorCriteria"] += CCLib.Common.Strings.GetFormString("rblMilitaryService") + "|";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblSchoolType:cblSchoolType_0") != "") ? "4Yr," : ",";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblSchoolType:cblSchoolType_1") != "") ? "2Yr," : ",";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblSchoolType:cblSchoolType_2") != "") ? "Tech," : ",";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblSchoolType:cblSchoolType_3") != "") ? "Other|" : "|";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblFields:cblFields_0") != "") ? "1," : ",";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblFields:cblFields_1") != "") ? "2," : ",";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblFields:cblFields_2") != "") ? "3," : ",";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblFields:cblFields_3") != "") ? "4," : ",";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblFields:cblFields_4") != "") ? "5," : ",";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblFields:cblFields_5") != "") ? "6," : ",";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblFields:cblFields_6") != "") ? "7," : ",";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblFields:cblFields_7") != "") ? "8," : ",";
                        Session["LocalScholSelectorCriteria"] += (CCLib.Common.Strings.GetFormString("cblFields:cblFields_8") != "") ? "9|" : "|";
                        #endregion User came from FinderSearch page
                    }
                }
            }

            SetSearchCriteria();
            SetReviewAnswers();
            #endregion Initialize Values and Form Execution

            //!!! It's important to rebind the repeater on each request because we set enableviewstate of the repeater to false
            PopulateRptSchol(ucLocScholList.RepeaterFilterExpression, ucLocScholList.RepeaterFieldsFilter, ucLocScholList.RepeaterSortExpression, " ASC");
        }