我如何将参数传递给aspnet reportviewer

时间:2022-03-08 07:28:07

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

我想从我使用表单构建的页面将参数传递给reportviewer控件。

2 个解决方案

#1


4  

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

#2


1  

Url access parameters

Url访问参数

#1


4  

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

#2


1  

Url access parameters

Url访问参数