Reputation: 2490
I want to pass parameters to reportviewer control from the page I built with a form.
Upvotes: 0
Views: 5220
Reputation: 4360
I think this is what you are lookin for.
List<Microsoft.Reporting.WebForms.ReportParameter> params = new List<Microsoft.Reporting.WebForms.ReportParameter>();
params.Add(new Microsoft.Reporting.WebForms.ReportParameter("Name", "Value", false));
this.ReportViewer1.ServerReport.SetParameters(params);
Upvotes: 4