|
me", 34 DropDownList1.SelectedValue); 35 36 /**//* Put the stored procedure result into a dataset */ 37 thisDataSet = SqlHelper.ExecuteDataset(thisConnection, 38 "ShowProductByCategory", SearchValue); 39 40 /**//*or thisDataSet = SqlHelper.ExecuteDataset(thisConnection, 41 "ShowProductByCategory", dropdownlist1.selectedvalue); 42 if you only have 1 input parameter */ 43 44 /**//* Associate thisDataSet (now loaded with the stored 45 procedure result) with the ReportViewer datasource */ 46 ReportDataSource datasource = new 47 ReportDataSource("DataSetProducts_ShowProductByCategory", 48 thisDataSet.Tables[0]); 49 50 ReportViewer1.LocalReport.DataSources.Clear(); 51 ReportViewer1.LocalReport.DataSources.Add(datasource); 52 if (thisDataSet.Tables[0].Rows.Coun上一页 [1] [2] [3] [4] [5] [6] 下一页 |
|
|
|
|
|
|
|