protected void ClusterNameComboBox_SelectedIndexChanged(object sender, EventArgs e) { string clustername = ""; clustername = this.ClusterNameComboBox.SelectedItem.Value.ToString(); DashboardReports.DBClusterXtraRpt report = new DashboardReports.DBClusterXtraRpt(); report.Parameters["ClusterName"].Value = clustername; report.CreateDocument(); ASPxDocumentViewer1.Report = report; ASPxDocumentViewer1.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { FillCombobox(); } string clustername = ""; //4/29/2015 NS modified for VSPLUS-1692 if (ClusterNameComboBox.SelectedIndex != -1) { clustername = this.ClusterNameComboBox.SelectedItem.Value.ToString(); } DashboardReports.DBClusterXtraRpt report = new DashboardReports.DBClusterXtraRpt(); report.Parameters["ClusterName"].Value = clustername; report.CreateDocument(); ASPxDocumentViewer1.Report = report; ASPxDocumentViewer1.DataBind(); }