title: Add extra userId parameter to ASP.Net ReportViewer
body: <p>Using the Asp.net Report Viewer in VS2010 in Remote mode we need to allow the user to use the default controls on the report viewer for entering in the parameters before running the report.</p>
  
  <p>As permissions need to be set on the data we have a UserId hidden parameter on all the reports and the plan was to allow the user to enter in the parameters as normal and then we would add [programmatically] the userId parameter before the report is run. </p>
  
  <p>The data in the report would then return the data that the user had permission to view.</p>
  
  <p>[We use the SSRS web service to populate a treeview with a list of available reports for the user to select.]</p>
  
  <p>I guess I'm having trouble with whats the best approach for this. I need to pass the userId parameter value to the ReportViewer and not to the server report.</p>
  
  <p>I'm aware that you can use the web service to manage the parameters completely outside of the control but its not an option for us at the minute.</p>
  
  <p>So in summary:</p>
  
  <p>User Selects Parameters in the Report Viewer.
  Code behind adds the UserId parameter value either as the report is run or initially when its loaded and the viewer passes all the parameters to the server.</p>
  
  <p>I'd appreciate any help that you could give.</p>
  
  <p>Liam</p>