protected void ReportViewerDataBind(string schoolName, string className, string term, string classID) { SqlDataSource1.SelectParameters.Clear(); SqlDataSource1.SelectParameters.Add("ClassID", classID); SqlDataSource1.SelectParameters.Add("Term", term); System.Web.UI.WebControls.Parameter paraSchoolCount = new System.Web.UI.WebControls.Parameter("StudentCount", System.Data.DbType.Int32); paraSchoolCount.Direction = System.Data.ParameterDirection.Output; SqlDataSource1.SelectParameters.Add(paraSchoolCount); // int StudentCount = _studentCount.Fn_GetStudentCount(term, classID); ReportViewer1.LocalReport.SetParameters(new Parameter("SchoolName", schoolName)); ReportViewer1.LocalReport.SetParameters(new Parameter("ClassName", className)); ReportViewer1.LocalReport.SetParameters(new Parameter("Term", term)); // ReportViewer1.LocalReport.SetParameters(new Parameter("StudentCount", StudentCount.ToString())); ReportViewer1.LocalReport.Refresh(); }
protected Parameter(System.Web.UI.WebControls.Parameter original) { }