title: How to change asp:ListView DataPager page from codebehind (c#)
body: <p>Quite simple question, but I am having loads of issues with it.</p>
  
  <pre><code>    protected void restorePagerNumber()
      {
          if (Session["PageNumber"] != null)
          {
              System.Diagnostics.Debug.Write(Session["PageNumber"]);
              DataPager pager = searchListView.FindControl("searchDataPager") as DataPager;
              pager.SetPageProperties((int)Session["PageNumber"] * pager.PageSize, pager.MaximumRows, false);
          }
      }
  </code></pre>
  
  <p>Thats what I currently have, I tried to use it before databind, after data bind, none of them seem to work. Can I actually change <code>pager</code> value after creating new object? 
  Doesnt sound logical, but I cannot access <code>datapager</code> without that. Is there another way to access <code>dataPager</code> that is in a <code>listView</code>  and maybe another way to set its page number.</p>
  
  <p>Cheers</p>