asprepeater

Inline IF statement for ItemIndex asp:Repeater VB.NET

I am trying to do an inline IF statement inside a asp:Repeater control to add a class to the first item, but I can't quite seem to figure it out. Basically the code I have right now that is not working but should give an idea of what I'm "trying" to do looks like this. <asp:Repeater ID="rptrTabRepeater" runat="server"> <Item...

Why won't DataBinder.Eval work

I am trying to create a simple menu system using repeaters. In the system I want to use a different formatting for class sub items and am trying to use an If that checks the DataBinders results and branches if its "Classes" but when I compile the code is says: Name "Container" not declared. On all the tutorials online and MSDN the Co...