Get repeater data item index

Discussion in 'ASP .Net' started by Marty, Nov 10, 2003.

  1. Marty

    Marty Guest

    How can I get the index of the bound repeater item from
    within the <ItemTemplate> tag?
     
    Marty, Nov 10, 2003
    #1
    1. Advertisements

  2. Marty

    Teemu Keiski Guest

    Hi,

    <ItemTemplate>
    <%#Container.ItemIndex %>
    </ItemTemplate>

    --
    Teemu Keiski
    MCP, Microsoft MVP (ASP.NET), AspInsiders member
    ASP.NET Forum Moderator, AspAlliance Columnist


    "Marty" <> wrote in message
    news:080001c3a7b9$3ab318b0$...
    > How can I get the index of the bound repeater item from
    > within the <ItemTemplate> tag?
     
    Teemu Keiski, Nov 10, 2003
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. George Addison

    Repeater Item Index

    George Addison, Nov 30, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    13,441
    Guest
    Dec 1, 2003
  2. martin
    Replies:
    2
    Views:
    3,459
    =?Utf-8?B?RGF2aWQgQ29lLCBNQ1A=?=
    Feb 16, 2004
  3. Peter Rilling
    Replies:
    1
    Views:
    1,207
    =?Utf-8?B?RWx0b24gVw==?=
    May 19, 2005
  4. Microsoft

    how to get item index ?

    Microsoft, Oct 6, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    712
    Kevin Spencer
    Oct 7, 2005
  5. Replies:
    5
    Views:
    537
  6. Johannes Zellner
    Replies:
    1
    Views:
    633
    Alex Martelli
    Jan 17, 2006
  7. Sean

    how to get datagrid item index from DataKeyField value?

    Sean, Aug 6, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    1,493
    Arthur
    Aug 7, 2003
  8. Tomasz Chmielewski

    sorting index-15, index-9, index-110 "the human way"?

    Tomasz Chmielewski, Mar 4, 2008, in forum: Perl Misc
    Replies:
    4
    Views:
    620
    Tomasz Chmielewski
    Mar 4, 2008
Loading...