protected void Page_Init(object sender, EventArgs e) { _vwbQuery = new VwbQuery(Request); if (!IsPostBack) { if (_vwbQuery.ShouldRun) { BuildReport(); } } }
public VwbQuery Clone() { var clone = new VwbQuery(); var temp = new string[ColumnKeysInOrder.Count]; ColumnKeysInOrder.CopyTo(temp); clone.ColumnKeysInOrder = temp.ToList(); clone.StartDate = StartDate; clone.EndDate = EndDate; clone.ShouldRun = ShouldRun; clone.SortColumnKey = SortColumnKey; clone.PublicationIdValue = PublicationIdValue; clone.IssueIdValue = IssueIdValue; clone.ColumnOrderValue = ColumnOrderValue; clone.Descending = Descending; clone.NumResultsValue = NumResultsValue; clone.InProgressValue = InProgressValue; clone.PublicationCodes = PublicationCodes; return(clone); }
public void RedirectTo(VwbQuery query) { Response.Redirect(GetCurrentPageUrl() + "?" + query.GetQueryString()); }