<telerik:ReportViewer ID="reportViewer1" Width="90%" EnableAccessibility="true" PageMode="SinglePage" ScaleMode="FitPageWidth" runat="server"> <ReportSource Identifier="Report1.trdp" IdentifierType="UriReportSource"> <Parameters> <telerik:Parameter Name="AccountId" Value="25585" /> </Parameters> </ReportSource> </telerik:ReportViewer>
I tried pass the Parameter via the html and code behind and it seems to be ignored. My Report1.trdp file reads a Stored Procedure passing in the AccountId. I am using a SQL Data source as part of the Report1.trdp file.
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { this.reportViewer1.ReportSource.Parameters.Add("AccountId", 25585); } }