Creating a webcontrol to enumerate items in a Repeater
If you need to enumerate the items in a data-bound webcontrol (e.g. Repeater, ListView) the DataItemCounter webcontrol can help you to make it. This article walks through creating a custom web control.