By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,378 Members | 1,455 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,378 IT Pros & Developers. It's quick & easy.


P: 17
can we pass the parameter from the .aspx page to sql server report 2005??

and this is server report not a local report.

Apr 30 '08 #1
Share this Question
Share on Google+
1 Reply

P: 17
I found out the solution
we can pass it by report parameter.

heres the code:

ReportViewer1.ProcessingMode = ProcessingMode.Remote;
ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://localhost/ReportServer");
ReportViewer1.ServerReport.ReportPath = "/abc/rptSample";
List<ReportParameter> paramList = new List<ReportParameter>();

paramList.Add(new ReportParameter("Months",ReportParameters.Months,f alse));

this.ReportViewer1.ServerReport.SetParameters(para mList);

May 7 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.