protected void xPage_Load(object sender, EventArgs e) { var reportUser = ReportUser.Public; var start = DateTime.UtcNow; //var report = OfficialsReport.GetReport(reportUser, "VA", "059", "14"); //var report = OfficialsReport.GetReport(reportUser, "VA", "059"); var report = OfficialsReport.GetReport(reportUser, "DC"); //var table = // Offices.GetOfficialsReportData(new OfficialsReportOptions // { // ElectoralLevel = ElectoralLevel.State, // StateCode = "VA" // }); var elapsed = DateTime.UtcNow - start; PlaceHolder placeHolder; if (reportUser == ReportUser.Public) { PublicCss.Visible = true; placeHolder = PublicPlaceHolder; } else { NonPublicCss.Visible = true; placeHolder = NonPublicPlaceHolder; } placeHolder.Controls.Add(report); }
private void ShowOfficialsReport() => OfficialsReport.GetReport(Report.SignedInReportUser, ViewState["StateCode"].ToString(), ViewState["CountyCode"].ToString(), ViewState["LocalCode"].ToString()).AddTo(ReportPlaceHolder);
private void ShowOfficialsReport() { OfficialsReport.GetReport(Report.SignedInReportUser, StateCode, CountyCode, LocalKey) .AddTo(ReportPlaceHolder); }