Click here to Skip to main content
12,395,203 members (69,789 online)
Rate this:
Please Sign up or sign in to vote.
See more: ASP.NET SSRS Reporting

I am using the SSRS report ..when I click navigation button after showing the report ( it is in one page) the next page navigation button is shown ..when i click it ..It shows following error
("page navigation is out of range")

How to solve this ...

I search a lot ...many of saying give

if (IsPostBack)
But it won't work....

My Code is below..
<rsweb:ReportViewer ID="rvPriceListDetails" BackColor="White"  runat="server" ProcessingMode="Remote"   Width="100%"  ZoomPercent="100" AsyncRendering="true">


private void InitializeReportCredentials()
           string server = ConfigurationManager.AppSettings["ReportServer"];
           string reportpath = ConfigurationManager.AppSettings["ReportsFolder"];
           string username = ConfigurationManager.AppSettings["Username"];
           string password = ConfigurationManager.AppSettings["Password"];
           string Domain = ConfigurationManager.AppSettings["Domain"];
           rvPriceListDetails.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
           if (IsPostBack)
           rvPriceListDetails.ServerReport.ReportServerUrl = new System.Uri(server);
           rvPriceListDetails.ServerReport.ReportPath = string.Concat(reportpath, ReportName);
           rvPriceListDetails.ShowParameterPrompts = true;
           rvPriceListDetails.ServerReport.ReportServerCredentials = new ReportCredentials(username, password, Domain);
           ReportParameter UserName = new ReportParameter("UserName", SessionManager.Current.UserObject.UserName);
           rvPriceListDetails.ServerReport.SetParameters(new ReportParameter[] { UserName });
Posted 19-Apr-13 21:37pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 20 Apr 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100