title: Add pagination to a table asp.NET
body: <p>I have this table in the <code>aspx</code> file and functions in the <code>.cs</code> file to populate the table from the database</p>
  
  <pre><code>&lt;asp:Table ID="tblRoles" runat="server" GridLines="Both" HorizontalAlign="center" Style="margin-top: 1em; margin-left:1.5em; margin-right:1.5em; text-align:center; text-wrap:normal;"&gt;
      &lt;asp:TableHeaderRow ForeColor="White" BackColor="DodgerBlue" Style="background: #6688FF; height: 4em; text-align: center; text-transform: capitalize;"&gt;
          &lt;asp:TableHeaderCell Text="One" Width="5%"/&gt;
          &lt;asp:TableHeaderCell Text="Two" width="10%"/&gt;
          &lt;asp:TableHeaderCell Text="Three" width="10%"/&gt;
          more here...
      &lt;/asp:TableHeaderRow&gt;
  &lt;/asp:Table&gt;
  </code></pre>
  
  <p>I was to add pagination to this but would it be possible to do it with <code>Table</code> and if so how? All my functions were already written to match the table. For another page I did the pagination with <code>Gridview</code> but I would like to avoid changing everything if possible.</p>