Re: Accessing the index of the iterator in a repeater
From: avnrao (avn_at_newsgroups.com)
Date: 06/23/04
- Next message: Brian Shannon: "Previous Link"
- Previous message: Sun Tzu: "Positioning buttons via HTML"
- In reply to: Ashutosh Bhalerao: "Accessing the index of the iterator in a repeater"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 23 Jun 2004 21:11:30 +0530
use <%# DataBinder.Eval(Container,"ItemIndex","") %>
Av.
"Ashutosh Bhalerao" <ashubhalerao@yahoo.com> wrote in message
news:b02e5e9e.0406230718.42018957@posting.google.com...
> Hi all,
>
> I have bound an Arraylist of Objects to a repeater.
>
> All the items from the Object display fine on the screen.
>
> Now I need the current index being bound inside the <ItemTemplate>
> </ItemTemplate>. If the zeroth element is being bound then I need to
> display 0 in a column, if the first element is being bound then I want
> to display 1 in the column and so on.
>
> Is there a property available which will allow me to get his index?
> How do I go about doing this? Any help is appreciated.
>
> Thanks in advance.
>
> Rgds,
> Ashu
- Next message: Brian Shannon: "Previous Link"
- Previous message: Sun Tzu: "Positioning buttons via HTML"
- In reply to: Ashutosh Bhalerao: "Accessing the index of the iterator in a repeater"
- Messages sorted by: [ date ] [ thread ]