Skip to content

Instantly share code, notes, and snippets.

@dannylloyd
Created April 23, 2013 19:45
Show Gist options
  • Select an option

  • Save dannylloyd/5446786 to your computer and use it in GitHub Desktop.

Select an option

Save dannylloyd/5446786 to your computer and use it in GitHub Desktop.
A repeater using bootstrap and pass a generic type
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="PagedRepeater.ascx.vb" Inherits="Website.PagedRepeater" %>
<div>
<table class='<%= Classes %>'>
<thead <%= If(rptData.Items.Count = 0, "style=""display: none;""", "")%>>
<%= HeaderTemplate%>
</thead>
<tbody>
<asp:ListView ID="rptData" runat="server">
<ItemTemplate></ItemTemplate>
</asp:ListView>
</tbody>
</table>
<div class="pagination pagination-centered" id="pager" runat="server">
<asp:Label ID="lblCurrentPage" runat="server"></asp:Label><br />
<ul>
<li runat="server" id="btnPrevContainer"><asp:LinkButton runat="server" ID="btnPrev" runat="server" OnClick="btnPrev_Click">«</asp:LinkButton></li>
<li runat="server" id="btnNextContainer"><asp:LinkButton runat="server" ID="btnNext" runat="server" OnClick="btnNext_Click">»</asp:LinkButton></li>
</ul>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment