Created
April 23, 2013 19:45
-
-
Save dannylloyd/5446786 to your computer and use it in GitHub Desktop.
A repeater using bootstrap and pass a generic type
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%@ 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