protected void btnAddTimeRange_Click(object sender, System.EventArgs e) { try { string levUN = Request.Form[this.UniqueID + ":selTimeRangeLevel"]; Level lev = _report.Schema.Levels[levUN]; if (lev == null) { throw new Exception("Cannot find level"); } _contr.AddFilteredByNameSet(lev, this.txtTimeRangeStart.Value, this.txtTimeRangeEnd.Value, this.chkTimeRangePrompt.Checked); _report.SaveState(); } catch (Exception exc) { ((PageBase)this.Page).ShowException(exc); } }