9
First of all, your anchor is client side, you should add an attribute of runat="server" to this. Second, try using it like following.
<a href="#" runat="server" id="mySprite1"
class='<%# "mySprite id" + ((int)DataBinder.Eval(Container,"ItemIndex")) % 6 + 1 %>'>