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?
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.