后台代码:
private void DataBind() { ProductByYear py = new ProductByYear(); for (int i = 0; i < RadioButtonList1.Items.Count; i++) { if (RadioButtonList1.Items[i].Selected) { py.Company = RadioButtonList1.Items[i].Value.Trim(); } } //py.Company = "ZE"; ProductByYearManager pymgr = new ProductByYearManager(); this.Store1.DataSource = pymgr.ProductByYearList(py); this.Store1.DataBind(); this.ChartYear.Width = 600; this.ChartYear.Height = 400; this.ChartYear.DataSource = pymgr.ProductByYearChart(py); this.ChartYear .DataBind (); this.ChartYear.Series["last year"].ChartType = SeriesChartType.Column; this.ChartYear.Series["year"].ChartType = SeriesChartType.Column; t