The AlternatingItemTemplate
Posted: (EET/GMT+2)
If you are using the ASP.NET Repeater web control, it is a common need to make sure every other is either white or gray.
The best way to do this is to use the AlternatingItemTemplate template tag with the ASP:Repeater control.
This way, you don't need to write the color stuff in code.
But the thing is that it's way too easy to forget about AlternatingItemTemplate! So you have been warned.