Tuesday, April 19, 2011

ASP:Repeater displaying different markup for the first item

There is a little trick i found here http://asp-net-whidbey.blogspot.com/2006/07/net-20-repeater-different-template-for.html that i think is really neat like to display different markup/html for the first item in the repeater.


<asp:placeholder runat="server" visible="<%# (Container.ItemIndex == 0) %>"%></asp:placeholder%>

No comments:

Post a Comment