title: ASP.NET Repeater Template, Conditional Code for every Nth element
body: <p>I'm using an asp.net repeater to create a bunch of images.  The image markup is all the same so the standard <code>&lt;ItemTemplate&gt;</code> is fine.</p>
  
  <p>However, I want to wrap K images in a div.  Lets say I bind 25+ images to the repeater and I want 5 images per div. How do I go about conditionally creating the start and close tags for the div?</p>
  
  <p>Is this a case better suited for a for loop.</p>