예제 #1
0
        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);

            //set the URLs for the left hand hyperlinks
            if (!Page.IsPostBack)
            {
                SetLeftHandLinksText();
                SetDataLinks();
                SetHideShowNumbersLink();
                SetScatterplotLink();
                SetReadAboutLink();
                SetGlossaryLink();

                string qsChangeSchoolOrDistrict = user.GetQueryString(
                    "FULLKEY", FullKeyUtils.StateFullKey(globals.FULLKEY));
                qsChangeSchoolOrDistrict = QueryStringUtils.ReplaceQueryString(qsChangeSchoolOrDistrict,
                                                                               globals.OrgLevel.Name, globals.OrgLevel.Range[OrgLevelKeys.State]);
                qsChangeSchoolOrDistrict = QueryStringUtils.ReplaceQueryString(qsChangeSchoolOrDistrict,
                                                                               "DN", String.Empty);
                qsChangeSchoolOrDistrict = QueryStringUtils.ReplaceQueryString(qsChangeSchoolOrDistrict,
                                                                               "SN", String.Empty);

                this.ChangeSchoolOrDistrict.NavigateUrl = globals.CreateURL("~/selschool.aspx", qsChangeSchoolOrDistrict);

                ViewTitle.Text = globals.OrgLevel.Key + " View";
            }
        }
        private void CompareToSelectedRedirect()
        {
            System.Diagnostics.Debug.WriteLine("CompareToSelectedRedirect()");
            string   qs       = string.Empty;
            string   filedest = string.Empty;
            OrgLevel ol       = GlobalValues.OrgLevel;

            //hackish escape from redirect::
            String magicPageNameString = "ChooseSelected";

            /*if (ol.Key == OrgLevelKeys.District) filedest = magicPageNameString + "Districts.aspx";
             * else if (ol.Key == OrgLevelKeys.School) filedest = magicPageNameString + "Schools.aspx";
             * else  throw new Exception("Invalid OrgLevel for Selected Fullkeys Redirect");*/
            filedest = magicPageNameString + ".aspx";

            // so that the redirect does not get into an endless loop.
            // and so we can select a different question
            if (Request.FilePath.Contains(magicPageNameString) ||
                Request.FilePath.Contains("questions.aspx") ||
                Request.FilePath.Contains("performance.aspx") ||
                Request.FilePath.Contains("offerings.aspx") ||
                Request.FilePath.Contains("demographics.aspx") ||
                Request.FilePath.Contains("attendance.aspx")
                )
            {
                return;
            }


            qs = UserValues.GetBaseQueryString();
            string NavigateUrl = GlobalValues.CreateURL("~/" + filedest, qs);

            Response.Redirect(NavigateUrl, true);
        }
        void RedirectToSimilar_OnRedirectUser()
        {
            String qs          = UserValues.GetBaseQueryString();
            string NavigateUrl = GlobalValues.CreateURL("~/" + GraphFileKeys.StateTestsSimilar, qs);

            Response.Redirect(NavigateUrl, true);
        }
        protected void SchoolScript_OnRedirectUser()
        {
            string filedest    = "selschool.aspx";
            string qs          = UserValues.GetBaseQueryString();
            string NavigateUrl = GlobalValues.CreateURL("~/" + filedest, qs);

            Response.Redirect(NavigateUrl, true);
        }
        protected void InitialAgencyRedirect()
        {
            System.Diagnostics.Debug.WriteLine("InitialAgencyRedirect()");

            string qs       = string.Empty;
            string filedest = string.Empty;

            filedest = "SelSchool.aspx";
            qs       = UserValues.GetBaseQueryString();
            string NavigateUrl = GlobalValues.CreateURL("~/" + filedest, qs);

            Response.Redirect(NavigateUrl, true);
        }
예제 #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            char loopEnd;

            loopEnd = 'Z';

            switch (SDC.ToString())
            {
            case "CO":
                loopEnd = 'W';
                break;
            }

            user = ((PageBaseWI)Page).UserValues;

            for (char myChar = 'A'; myChar <= loopEnd; myChar++)
            {
                if ((myChar != 'Q') && (myChar != 'X'))
                {
                    LiteralControl mySpacer = new LiteralControl();
                    mySpacer.Text = " ";

                    HyperLink myLink = new HyperLink();
                    myLink.ID   = "myLink" + myChar;
                    myLink.Text = myChar.ToString();

                    String qString = user.GetBaseQueryString();
                    qString            = QueryStringUtils.ReplaceQueryString(qString, "SEARCHTYPE", SDC.ToString());
                    qString            = QueryStringUtils.ReplaceQueryString(qString, "L", myChar.ToString());
                    myLink.NavigateUrl = user.CreateURL("~/SchoolScript.aspx", qString.ToString());

                    this.PlaceHolder1.Controls.Add(mySpacer);
                    this.PlaceHolder1.Controls.Add(myLink);
                }
            }
        }
        private void decommissionedPagesRedirect()
        {
            string graphFileKey = GlobalValues.GraphFile.Key;

            switch (graphFileKey)
            {
            case GraphFileKeys.ACT:
                Response.Redirect("http://wisedash.dpi.wi.gov/Dashboard/Page/Home/Topic%20Area/Academic%20Performance/ACT", true);
                break;

            case GraphFileKeys.AP:
                Response.Redirect("http://wisedash.dpi.wi.gov/Dashboard/Page/Home/Topic%20Area/Academic%20Performance/AP", true);
                break;

            case GraphFileKeys.ATTENDANCE:
                Response.Redirect("http://wisedash.dpi.wi.gov/Dashboard/Page/Home/Topic%20Area/Attendance/", true);
                break;

            case GraphFileKeys.StateTests:
            case GraphFileKeys.StateTestsScatter:
            case GraphFileKeys.StateTestsSimilar:
            case GraphFileKeys.CompareContinuing:
                Response.Redirect("http://wisedash.dpi.wi.gov/Dashboard/Page/Home/Topic%20Area/Academic%20Performance/WSAS%20%28WKCE%20and%20WAA-SwD%29", true);
                break;

            case GraphFileKeys.DISABILITIES:
                Response.Redirect("http://wisedash.dpi.wi.gov/Dashboard/Page/Home/Topic%20Area/Enrollment/Enrollment%20(Single%20Year)?pf:DatasetView=Current&pf:GroupBy=Primary%20Disability", true);
                break;

            case GraphFileKeys.GROUPS:
                Response.Redirect("http://wisedash.dpi.wi.gov/Dashboard/Page/Home/Topic%20Area/Enrollment/", true);
                break;

            case GraphFileKeys.HIGHSCHOOLCOMPLETION:
                Response.Redirect("http://wisedash.dpi.wi.gov/Dashboard/Page/Home/Topic%20Area/Graduation/", true);
                break;

            case GraphFileKeys.GWRCT:
                string NavigateUrl = GlobalValues.CreateURL("~/performance.aspx", UserValues.GetQueryString(GlobalValues.GraphFile.Name, String.Empty));
                Response.Redirect(NavigateUrl);
                break;

            case GraphFileKeys.ActivityOffer:
            case GraphFileKeys.ActivitiesPartic:
                if (GlobalValues.Show.Key == ShowKeys.Community)
                {
                    Response.Redirect("http://apps2.dpi.wi.gov/sdpr/redirect?topic=community-activities" + GlobalValues.SdprQS);
                }
                else if (GlobalValues.Show.Key == ShowKeys.Extracurricular)
                {
                    Response.Redirect("http://apps2.dpi.wi.gov/sdpr/redirect?topic=extra-curricular-activities" + GlobalValues.SdprQS);
                }
                break;

            case GraphFileKeys.TRUANCY:
                Response.Redirect("http://apps2.dpi.wi.gov/sdpr/redirect?topic=habitual-truancy" + GlobalValues.SdprQS);
                break;

            case GraphFileKeys.POSTGRADPLAN:
                Response.Redirect("http://apps2.dpi.wi.gov/sdpr/redirect?topic=postgrad-plans" + GlobalValues.SdprQS);
                break;

            case GraphFileKeys.GGRADREQS:
                Response.Redirect("http://apps2.dpi.wi.gov/sdpr/redirect?topic=hs-grad-req" + GlobalValues.SdprQS);
                break;

            case GraphFileKeys.RETENTION:
                Response.Redirect("http://apps2.dpi.wi.gov/sdpr/redirect?topic=retention" + GlobalValues.SdprQS);
                break;
            }
        }