Conditional ASP.NET Repeater

leancorreia

New Member
It's my Repeater:\[code\]<asp:Repeater ID="RepeaterWeb" runat="server"> <ItemTemplate> <div class="productWrapper"> <div class="productWrapperImage"><img src="http://stackoverflow.com/questions/14546668/prdimg/<%# Trim(Eval("ProductImage")).ToString()%>" /></div> <div class="fontTrebuchet"><%# Trim(Eval("ProductShortInfo")).ToString()%></div> <h3 class="fontUbuntu productBoxName"><%# Trim(Eval("ProductName")).ToString()%></h3> </div> <!--This div my problem--><div class="verticalProductsSpacer"></div></ItemTemplate></asp:Repeater>\[/code\]I feed the Repeater with 4 rows of data from database, first three \[code\]<div class="verticalProductsSpacer"></div>\[/code\] are necessary but the last one shouldn't be existed. How can I do it?
 
Back
Top