protected override void OnInitComplete(EventArgs e) { System.Diagnostics.Debug.WriteLine("PageBaseWI.OnInitComplete() Entered;"); String myPageName = Page.Request.ServerVariables["SCRIPT_NAME"]; String[] nameParts = myPageName.Split('/'); int last = nameParts.GetLength(0) - 1; myPageName = nameParts[last]; if (UserValues.GraphFile.Range.ContainsKey(myPageName)) { GlobalValues.GraphFile.Value = UserValues.GraphFile.Value = UserValues.GraphFile.Range[myPageName]; } base.OnInitComplete(e); Database = InitDatabase(); DataSet = InitDataSet(); DataGrid = InitDataGrid(); Graph = InitGraph(); NavRowGroups = InitNavRowGroups(); if (Database != null) { Database.DataSet = DataSet; } if (QueryMarshaller != null) { QueryMarshaller.Database = Database; } GlobalValues.OverrideWhenDownloadStateWide(); OnAssociateCompareSelectedToOrgLevel(UserValues, GlobalValues); if (NavRowGroups != null) { GlobalValues.OverrideGroupByLinksShown(NavRowGroups.LinksEnabled); } else //disable { GlobalValues.Group.Value = GlobalValues.Group.Range[GroupKeys.All]; } // run prerequisite checks if (OnCheckPrerequisites != null) { OnCheckPrerequisites(this, EventArgs.Empty); } // if prerequisite checks registered any redirects... if (OnRedirectUser != null && !GlobalValues.ShortCircuitRedirectTests) { OnRedirectUser(); } }
protected override void OnInitComplete(EventArgs e) { GlobalValues.TrendStartYear = 2003; GlobalValues.CurrentYear = 2015; DisabilitiesDataGrid.ColumnLoaded += new EventHandler(DisabilitiesDataGrid_ColumnLoaded); nlrSTYP.LinkRow.LinkControlAdded += new LinkControlAddedHandler(LinkRow_GrayOutSummaryStyp); if (GlobalValues.STYP.Key == STYPKeys.StateSummary && GlobalValues.Group.Key == GroupKeys.All) { GlobalValues.STYP.Value = GlobalValues.STYP.Range[STYPKeys.AllTypes]; } QueryMarshaller.RaceDisagCodes.Remove((int)QueryMarshaller.RaceCodes.Comb); base.OnInitComplete(e); //putting after base because overriding global GROUP override by STYP if (GlobalValues.OrgLevel.Key == OrgLevelKeys.State) { GlobalValues.Group.Value = UserValues.Group.Value; GlobalValues.OverrideGroupByLinksShown(NavRowGroups.LinksEnabled); } }