Return to Snippet

Revision: 8359
at September 16, 2008 16:31 by Anthony


Initial Code
protected void rptMyRepeater_ItemDataBound(Object Sender, RepeaterItemEventArgs e)
{
    if (this.showEmployerControls)
    {
        if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
        {
            MyCustomClass resultItem = (MyCustomClass)e.Item.DataItem;
           // do stuff here
         }
     }
 }

Initial URL

                                

Initial Description

                                

Initial Title
Repeater ItemDataBound

Initial Tags
event

Initial Language
C#