After a user edits report parameters, at some point I try to access new parameters with
_reportViewer.ServerReport.GetParameters()
Since that gives only the parameters user has submitted to the server with click on the View Report button, I’m looking to:
a) Simulate click on a View Button from code or
b) Get those parameters in some other way, preferably one that doesn’t involve reflection.
How could I “flush” the current parameters from the automatically generated report control from code?
If you call
ReportViewer1.ServerReport.GetParameters()from theReportViewer1UnLoadevent you will get the values the client entered.ASP.NET:
Codebehind: