Skip to content

Instantly share code, notes, and snippets.

@dannylloyd
Created April 10, 2015 20:56
Show Gist options
  • Select an option

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

Select an option

Save dannylloyd/cd05bfb1d07b520debbe to your computer and use it in GitHub Desktop.
Empty data text for repeater
<asp:Repeater ID="rpt" runat="server">
<ItemTemplate>
Item template
</ItemTemplate>
<FooterTemplate>
<asp:PlaceHolder runat="server" Visible="<%# rptSubmissions.Items.Count = 0%>">
<div class="row" style="border-top: solid 3px #E9E9E9; padding-bottom: 10px;">
<span style="font-style:italic; font-weight: bold;">No data</span>
</div>
</asp:PlaceHolder>
</FooterTemplate>
</asp:Repeater>
@Sophior
Copy link

Sophior commented Nov 3, 2016

Very elegant and smart approach. thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment