passing hidden parameter from aspx to reportviewer
I'm using SSRS 2008 r2. I'm using a aspx website to display reports using ReportViewer control. I have a hidden parameter in report, plus other parameters which will be entered by the user. Is there a way to pass this hidden parameter from the aspx page to reportviewer? Since the user does not have to see it, I cannot use querystring. Please suggest! Thanks
March 13th, 2011 12:13pm

Hi Swadeshi, Did you try the above suggested solution. Please let us know if the above helped you or feel free discuss if you need any further clarifications. Please click "Mark as Answer" if this resolves your problem or "Vote as Helpful" if you find it helpful. BH
Free Windows Admin Tool Kit Click here and download it now
March 13th, 2011 12:48pm

When you are using reportViewer control, I dont think the parameter values are displayed in the url. ReportViewer control internally calls the report server passing all the parameters set within the appliation. You would set the value for a hidden parameter the same as you would set for a visible parameter as shown below. ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote ReportViewer1.ServerReport.ReportServerUrl = New Uri("http://myServer/ReportServer") ReportViewer1.ServerReport.ReportPath = "/MyReport" Dim parameters(1) As ReportParameter parameters(0) = New ReportParameter("pCategory", "A") ' below is a hidden parameter parameters(1) = New ReportParameter("pAmount", 100) ReportViewer1.ServerReport.SetParameters(parameters) Hope this helps. Please feel free to discuss if you have any further issues. Please click "Mark as Answer" if this resolves your problem or "Vote as Helpful" if you find it helpful. BH
March 13th, 2011 12:52pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics