protected void btn_showReport_Click(object sender, EventArgs e)
{
try
{
ReportParameter Comp_Name = new ReportParameter();
Comp_Name.Name = "Comp_Name";
ReportViewer1.ProcessingMode = ProcessingMode.Remote;
ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://dell-pc/ReportServer");
ReportViewer1.ServerReport.ReportPath = "/Companies Report/Companies";
ReportViewer1.ServerReport.SetParameters(new ReportParameter[] { Comp_Name });
ReportViewer1.ServerReport.Refresh();
}
catch (Exception ex)
{
throw ex;
}
}
the above code is in "reportpage.aspx" when I click on it the company report is shown according
to the parameter "Comp_Name"
I want to show report in "reportpage.aspx" according to parameter name passed from another .aspx page, how to do that?