Click here to Skip to main content
11,791,025 members (52,132 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP.NET SSRS Reports

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
0 OriginalGriff 1,329
1 Maciej Los 835
2 ppolymorphe 780
3 KrunalRohit 686
4 CPallini 661

Advertise | Privacy | Mobile
Web02 | 2.8.1509028.1 | Last Updated 20 Apr 2013
Copyright © CodeProject, 1999-2015
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