Stripe rows in ASP.NET repeater control without using AlternatingItemTemplate


/ Published in: VB.NET
Save to your folder(s)

altRow is a css class defining the styles for the alternating row.


Copy this code and paste it in your HTML
  1. <div class="<%# if(Container.ItemIndex Mod 2 = 0,"","altRow") %>">

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.