2011年4月28日

[Reporting Service] Page navigation is out of range

It has been a while since I last update this blog. I have to say it was a crazy project, and fortunately things are getting better and better. And I really hope that I can focus on architecture more to make the whole system better…

We have a [Page navigation is out of range] error while navigating reports. This issue occurs when you modify reporting viewer properties, mostly the report related settings (e.g. report url…etc) while page is posting back, there are two ways to avoid such issue:

  1. Check if is posting back. and if yes, omit report-viewer property change.
    void Page_Load(){
      if(IsPostBack)
        return;
      //Other codes...
    }



  2. Set AsyncRendering to “True” to use a non post back rendering.

沒有留言:

Blog Archive

About Me