Repeater Item Index

  • Thread starter Thread starter George Addison
  • Start date Start date
G

George Addison

How do I test for the value of the repeater's item index:

SOmething like:

Select Case Container.ItemIndex

if container.itemindex
 
Where are you testing it? BAsically in databinding expression
Container.ItemIndex does return the index, but if you want to make more
complicated tests, you would need to use some sort of helper function or
manage the stuff in ItemDataBound event.
 
Thanks. My first post got cut off because I hit the
return key too soon.

All I want to do is access the Container.ItemIndex from a
<% %>, to accomplish something like:

<%
If container.ItemIndex < myTotalItems then
Response.Write("<br>")
End If
%>

Can this somehow be done?
 
Back
Top