private void BindReportType()
        {
            var objReportTypeController = new ReportTypeController();

            ddReportType.DataTextField  = "ReportTypeName";
            ddReportType.DataValueField = "ReportTypeId";
            ddReportType.DataSource     = objReportTypeController.ListReportType();
            ddReportType.DataBind();
        }
        private void RenderReportSettings()
        {
            var reportTypeId = ddReportType.SelectedValue;

            var objReportTypeController = new ReportTypeController();

            var objReportType = objReportTypeController.GetReportType(reportTypeId);

            var objReportSettingsBase = default(Controls.ReportSettingsControlBase);

            objReportSettingsBase = (Controls.ReportSettingsControlBase)(LoadControl(ResolveUrl(objReportType.ReportTypeSettingsControlSrc)));

            objReportSettingsBase.ID = "ReportSettings";
            if (Report != null)
            {
                objReportSettingsBase.LoadSettings(Report.ReportConfig);
            }
            else
            {
                objReportSettingsBase.LoadSettings("");
            }
            phReportSettings.Controls.Add(new LiteralControl(string.Format("<h3>{0} Settings</h3>", objReportType.ReportTypeName)));
            phReportSettings.Controls.Add(objReportSettingsBase);
        }