Display Alternate Syle for Alternating Rows in C#

This is just a quick little tip to help you display alternating row colors in your C# code for a DataList or GridView control. Using the AlternatingItemTemplate method is a pain, as it forces you to duplicate your entire ItemTemplate block just to add the alternating CSS class. While trying