Understanding repeaters.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nitinkcv
    New Member
    • Mar 2007
    • 65

    Understanding repeaters.

    Hi,

    I was wondering why do we actually check for this condition inside our onItemDataBound event of the repeater.

    if(e.Item.ItemT ype == ListItemType.It em ||e.Item.ItemTy pe == ListItemType.Al ternatingItem )

    {

    //Code goes here

    }

    else

    {

    //code goes here

    }

    Thanks,

    Nitin
  • gomzi
    Contributor
    • Mar 2007
    • 304

    #2
    Originally posted by Nitinkcv
    Hi,

    I was wondering why do we actually check for this condition inside our onItemDataBound event of the repeater.

    if(e.Item.ItemT ype == ListItemType.It em ||e.Item.ItemTy pe == ListItemType.Al ternatingItem )

    {

    //Code goes here

    }

    else

    {

    //code goes here

    }

    Thanks,

    Nitin
    So that you can dynamically bind values (after manipulation if necessary) to the controls in the repeater.

    Comment

    Working...