I\'m using an asp.net repeater to create a bunch of images. The image markup is all the same so the standard is fine.
However, I want
If you want to keep your markup on the ASPX page you could also try this variation on David's method:
On the aspx page:
In the ItemDataBound event in the codebehind:
e.Item.FindControl("divStart").Visible = e.Item.FindControl("divEnd").Visible = e.Item.ItemIndex % 5 == 0;