Repeater ItemDataBound


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  1. protected void rptMyRepeater_ItemDataBound(Object Sender, RepeaterItemEventArgs e)
  2. {
  3. if (this.showEmployerControls)
  4. {
  5. if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
  6. {
  7. MyCustomClass resultItem = (MyCustomClass)e.Item.DataItem;
  8. // do stuff here
  9. }
  10. }
  11. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.