D
darrel
I have a repeater that I'd like to apply some logic to, namly highlighting
the top few items in the repeater. To do this, I need to determine the
record count.
I've tried this:
<%
dim highlightCount as integer = 1
%>
<asp:Repeater id="Repeater1" runat="server">
<ItemTemplate>
<%
if (highlightCount < 3) AND DataBinder.Eval(Container.DataItem,
"Highlight").tostring = "1" then...
%>
But my code within the itemTemplate can't 'see' the 'highlightCount' integer
(I get a not declared error).
So...is there a way to get the record count via the databinder.eval
function? (or is my syntax incorrect up above?)
-Darrel
the top few items in the repeater. To do this, I need to determine the
record count.
I've tried this:
<%
dim highlightCount as integer = 1
%>
<asp:Repeater id="Repeater1" runat="server">
<ItemTemplate>
<%
if (highlightCount < 3) AND DataBinder.Eval(Container.DataItem,
"Highlight").tostring = "1" then...
%>
But my code within the itemTemplate can't 'see' the 'highlightCount' integer
(I get a not declared error).
So...is there a way to get the record count via the databinder.eval
function? (or is my syntax incorrect up above?)
-Darrel