views:

341

answers:

2

I want to pass parameters to reportviewer control from the page I built with a form.

+1  A: 

Url access parameters

Chris Ballance
+1  A: 

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);
ps