private void btnFormat_Click(object sender, System.EventArgs e) { string uniqueName = Request.Form[this._ddlUniqueName.UniqueID]; string name = Request.Form[this.txtName.UniqueID]; string format = Request.Form[this.listFormat.UniqueID]; try { _contr.SetFormattedMember(uniqueName, name, format); _report.SaveState(); } catch (Exception exc) { this.ShowException(exc); return; } }
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); } }