Repeater Item Index

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
 
T

Teemu Keiski

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.
 
G

Guest

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.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top