Last post Sep 27, 2012 03:55 PM by N_EvilScott
Sep 27, 2012 05:25 AM|savvy|LINK
I am using ReportViewer control in my asp.net web application.
There is a button called "View Report", the following code is in the asp.net button click event which loads the report. The parameters are selected on the web page and passed on to reportviewer control as shown below. This works fine.
rptvw.ProcessingMode = ProcessingMode.Remote;
rptvw.ServerReport.ReportServerUrl = new Uri("http://localhost:90/reportserver");
rptvw.ServerReport.ReportPath = "/Reports/Dashboard1";
var param = new ReportParameter;
param = new ReportParameter("Parameter1", dropdownlist1.SelectedItem.Text))
param = new ReportParameter("Parameter2", dropdownlist2.SelectedItem.Text));
I have 3 separate reports (.rdl files) for example Dashboard2, Dasboard3 and Dashboard4. On Dashboard1 (.rdl file) report there are actions (links) when clicked it loads Dashboard2, Dashboard3 and 4 reports.
My problem is how can the web page know which report is loaded so that I can apply the relavant parameters when "View Report" button is clicked and display the respective report?
Which reportviewer web control event can I use to determine which report is loaded?
Any help will be greatly appreciated. Thanks in Advance.
Sep 27, 2012 03:55 PM|N_EvilScott|LINK
Normally you use the drillthrough event and create links inside your report that auto load it for you. Check out the drill through tutorials here: