Passing parameters from client side code

Sometimes it's necessary to pass a parameter from the client side code into the report.

 Firstly you need to add a parameter in the report:
 
Then in the client side application you need to populate this parameter's value just before rendering:

reportViewer.Parameters["Parameter1"] = "param1";               
reportViewer.RenderDocument();

Add Feedback