title: Adding paging to asp repeater function ASP.Net
body: <p>I'm new to this site and asp.net (I'm coming from a classic asp background). I'm hoping someone could help me add a paging function to a repeater? I've tried following some other tutorials I've found but i keep hitting a brick wall. Here's my code:</p>
  
  <pre><code>&lt;form runat="server"&gt;
                  &lt;asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1"&gt;
  
  
        &lt;ItemTemplate&gt;
  
        &lt;div class="middlebar"&gt;&lt;!--middlebar --&gt;
  
            &lt;div class="middlebartext"&gt;&lt;!--middlebartext --&gt;
                  &lt;small&gt;&lt;asp:Label runat="server" ID="Label5"text='&lt;%# Eval("PMonthName")%&gt;' /&gt;&lt;br /&gt;&lt;asp:Label runat="server" ID="Label6" text='&lt;%# Eval("PDay")%&gt;' /&gt;&lt;/small&gt;
            &lt;/div&gt;&lt;!--middlebartext --&gt;
  &lt;div class="middlebarcorner"&gt;&lt;img src="Images/cornermiddle.png" alt="Corner Ribbon Image" /&gt;&lt;/div&gt;&lt;!--middlebarcorner --&gt;
              &lt;div class="middlebartexttitle"&gt;&lt;asp:Label runat="server" ID="Label3" 
                    text='&lt;%# Eval("Header")%&gt;' /&gt;&lt;br /&gt;
                  &lt;div class="middletextauth"&gt;Added By:  &lt;asp:Label runat="server" ID="Label2" 
                    text='&lt;%# Eval("AddedBy")%&gt;' /&gt;&lt;/div&gt;&lt;!--middletextauth --&gt;
                  &lt;div class="middletextkw"&gt;Keywords: &lt;span class="grey"&gt;key, words, test, file&lt;/span&gt;&lt;/div&gt;&lt;!--middletextkw --&gt;
  
              &lt;/div&gt;&lt;!--middlebartexttitle --&gt;
          &lt;/div&gt;&lt;!--middlebar --&gt;
            &lt;br /&gt;
  
            &lt;asp:Label runat="server" ID="Label4" 
                    text='&lt;%# Eval("PContent")%&gt;' /&gt;
  
           &lt;div class="ruler"&gt;&lt;/div&gt;
  
  
  
        &lt;/ItemTemplate&gt;
  
  
  
    &lt;/asp:Repeater&gt;
  
              &lt;/form&gt;
  
  
  
          &lt;asp:SqlDataSource 
        ConnectionString=
            "&lt;%$ ConnectionStrings:Conn %&gt;"
        ID="SqlDataSource1" runat="server" 
        SelectCommand="SELECT * from DBNAME where Deleted = 'False' Order By DateAdded DESC"&gt;
  
    &lt;/asp:SqlDataSource&gt; 
  </code></pre>