Hi
I am trying to set the parameters thru the reportviewer control and it's throwing this error
"ther report parameter is read only and cannot be modified. (rsReadOnlyReportParameter)"
here is my code
reportViewer1.ServerReport.ReportServerUrl = new Uri(ReportTaskParameter.ReportServerName.ToString());
reportViewer1.ServerReport.ReportPath = ReportTaskParameter.ReportName.ToString();
reportViewer1.ServerReport.SetParameters(new ReportParameter[] {
(new ReportParameter("TokenIDs","1,2"))
});
the strange thing is that I have 3 parameters in my report right after that I am setting the others too..
and it's working fine. I have set the default values for all the parameters. all having the same property.
And when I am commenting this code it works fine with the defult values. the only problem is with the first parameter.
i am able to set the other parameters using SetParameter(.......) method.
Why the problem is? on more thing all the parameters are internal , i don't want to show this parameters on the page. I have tried with setting it to hidden but still no luck...
any solution??
Thanks