how can I identify the report clicked inside the asp.net reportviewer control?

ephargha

New Member
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.\[code\] rptvw.ProcessingMode = ProcessingMode.Remote; rptvw.ServerReport.ReportServerUrl = new Uri("http://localhost:90/reportserver"); rptvw.ServerReport.ReportPath = "/Reports/Dashboard1"; var param = new ReportParameter[2]; param[0] = new ReportParameter("Parameter1", dropdownlist1.SelectedItem.Text)) param[1] = new ReportParameter("Parameter2", dropdownlist2.SelectedItem.Text)); rptvw.ServerReport.SetParameters(param); rptvw.ServerReport.Refresh();\[/code\]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.
 
Back
Top