title: Paginate generate number
body: <p>I want to add page number in my application, like <code>1 2 3 4</code>. My paginated class code is:</p>
  
  <pre><code>public bool HasPreviousPage
  {
      get
      {
          return (PageIndex &gt; 0);
      }
  }
  public bool HasNextPage
  {
      get
      {
          return (PageIndex+1&lt;TotalPages);
      }
  }
  </code></pre>
  
  <p>This code generates link and goto next page, but can't display page number.</p>